bootstrap-maxlength icon indicating copy to clipboard operation
bootstrap-maxlength copied to clipboard

AlwaysShow and classes

Open gquipster opened this issue 10 years ago • 3 comments

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

gquipster avatar Jun 02 '15 09:06 gquipster

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

mikelkew avatar Apr 19 '17 05:04 mikelkew

I vote this feature! 👍

davdenic avatar Feb 07 '20 14:02 davdenic

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!

qwe0001 avatar Jun 05 '20 04:06 qwe0001