-
Notifications
You must be signed in to change notification settings - Fork 436
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possible to add random colors for each tag? #223
Comments
Ok, I've just updated the demo page as to your request, but you also need to make sure you're using the at least Tagify version In this random tag color demo I was using the A completely different 3rd way would be to do this entirely via your CSS ( |
This works great thanks @yairEO however I've noticed the colors don't work if I make the tags readonly. Can you change that? I'm displaying a list that is coming from the db, so the user won't be writing any new tags themselves. Also would be nice if I can somehow hide the border of the input field. Since the tags class is somehow overriding the behavior. |
Why do you even need Tagify at all? why can't you just create some simple template which iterate over your list and creates tabs ( If you wish to have random colors on read-only tags you could modify Tagify's CSS and remove the rule which overrides the colors specifically for read-only ones. |
I'm showing tags in a particular column of a data row. I want each tag to have a distinct or a random color instead of all being grey. How can I do that?
If that's not possible, then is there a way I can use a different color for each of the tag input elements through html?
Something like:
<input name="tags'" value="" readonly style="color: red;">
The text was updated successfully, but these errors were encountered: