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

How to change TouchSpin status to disabled ?

Open hiyangguo opened this issue 8 years ago • 2 comments

I have a desired TouchSpin status to disabled .In other words I want to it value can't be change. I see the document after ,I have not find options in settings list. Can you tell me how to change this status to disabled?Thank you.

hiyangguo avatar Jun 03 '16 08:06 hiyangguo

Hi @hiyangguo, I guess it's too late, but maybe others will find my answer helpful. I was also looking for such a feature at some point. I ended up with simply applying disabled attribute to my spinbox. If you use jQuery, it can be done with spinbox.prop('disabled', true);.

iprotsyuk avatar Jan 23 '17 17:01 iprotsyuk

another related request: https://github.com/istvan-ujjmeszaros/bootstrap-touchspin/issues/46. gonna upvote here too.

+1.

celenetinkz avatar Feb 24 '17 17:02 celenetinkz

This is fixed in v4.5.2. The buttons are disabled with a MutationObserver if the input is disabled.

istvan-ujjmeszaros avatar Apr 03 '23 16:04 istvan-ujjmeszaros