yairEO / tagify

πŸ”– lightweight, efficient Tags input component in Vanilla JS / React / Angular / Vue

Home Page:https://yaireo.github.io/tagify/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Any possibility to custom helper title texts?

guibrancopc opened this issue Β· comments

Hi there!

First of all, thank you for this great component. It's very powerful and it's helping a lot already. πŸ™‚

I'm missing just a little thing, about to get a way to custom these texts that are showed on tag title in special cases (like not allowed, pattern mismatch, already exists).

It's because I'm from Brazil and my users are from here too, so it would be good to have these texts custom for my own context.

Is there a way to get it custom from the configuration?

Or, if not, would it be considered to be developed?

Thank you in advance! πŸ™

Hi, You can override them with Tagify.prototype.TEXT = {...} for all instances or just for your instance:

const myTagify = new Tagify(...)

myTagify.TEXTS = {...}

Awesome!

Thanks, @yairEO. πŸ™