Skip to content

What are the goals? #1

Closed
Closed
@jtojnar

Description

@jtojnar

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions