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

threshold as dynamic and not fixed number?

Open DePalmo opened this issue 9 years ago • 2 comments

Per the documentation, we can set a fixed number for threshold which works great, but I do have cases where threshold is required as low as 1 character and some other cases where 5 (or 10, 20, etc.) would be more appropriate. Since I'm using a single init for all input fields that have maxlength attribute, that enhancement would be superb, otherwise I would need to have multiple init calls with different threshold set.

Is this something that could be considered in next update?

DePalmo avatar Sep 04 '16 13:09 DePalmo

Old comment, but another vote for this, it'd be really useful to scale the threshold value depending on the maxlength value - perhaps to set it as a percentage.

sbwMikael avatar Sep 10 '18 00:09 sbwMikael