Skip to content
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

AlwaysShow and classes #102

Open
gquipster opened this issue Jun 2, 2015 · 3 comments
Open

AlwaysShow and classes #102

gquipster opened this issue Jun 2, 2015 · 3 comments

Comments

@gquipster
Copy link

Hi,

If you use the alwaysShow property to display the counter whenever the input is selected, it by default uses the warning class. Is it possible to add an extra property so I can have:

Label is green when 0 -> threshold characters are present
Label is amber when threshold -> max characters are present
Label is red when max characters are present

Thanks

@mikelkew
Copy link

I agree, this would be the ideal behavior. Perhaps using a defaultClass option that is used until threshold is reached.

@davdenic
Copy link

davdenic commented Feb 7, 2020

I vote this feature! 👍

@qwe0001
Copy link

qwe0001 commented Jun 5, 2020

Hey, does anyone have any news on this?
I want this feature really.

My working project won't wait for this feature to be implemented,
so I've implemented a temporary solution.

You can see it in the demo below.

https://codepen.io/qwe001/pen/LYGYxMa

I hope something close to this will be implemented as an official option!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants