minhur / bootstrap-toggle

Bootstrap Toggle is a highly flexible Bootstrap plugin that converts checkboxes into toggles
http://www.bootstraptoggle.com
MIT License
1.48k stars 440 forks source link

Change data-on/off text/label with .bootstrapToggle('disable') / ('enable') #227

Open neandr opened 3 years ago

neandr commented 3 years ago

Looking for a method to change the data label also when disable/enable a toggle button. Background: Beside the usual "Disable"/"Enable" method/status which is visually only displayed with pale color, an additional app mode "Mute" is required. Even if that "Mute" is programmatically a "Disable"/"Enable" method/Status, it should show the user the status difference through other labels (e.g. ON/OFF --> On/mute and OFF/mute). Is there an API or other method for this?