Closed
Description
Hi, is this version supposed to achieve feature parity with the old extension? At the moment, it looks like it is much less customizable, while the old extension was almost perfect.
For example, for selfoss, I used the following with the old extension in the introducing PR:
<ReactTags
ref={reactTags}
tags={source.tags}
inputAttributes={{
id: `tags-${sourceId}`, // For associating it with a label
accessKey: 'g', // For quick jump
onPaste, // I want to add a reasonable event handler but did not get to it yet.
}}
suggestions={tagSuggestions} // I abuse prefix field to add colour to each suggested tag
onDelete={tagsOnDelete}
onAddition={tagsOnAddition}
allowNew={true}
addOnBlur={true}
minQueryLength={1} // Looks like the beta uses 0 now, which works for me.
placeholderText={_('source_tags_placeholder')}
removeButtonText={_('source_tag_remove_button_label')}
newTagText={_('source_tags_create_new').replace('{0}', '%value%')} // This will be great.
classNames={reactTagsClassNames}
delimiters={['Enter', 'Tab', ',']} // Comma is much more convenient when typing on keyboard
tagComponent={tagComponent} // Also used to add colour to tags
/>
Metadata
Metadata
Assignees
Labels
No labels