|
@@ -211,6 +211,8 @@ $('#mySwitch').bootstrapSwitch('setState', true);
|
|
|
$('#mySwitch').bootstrapSwitch('setState', true || false, true); // sets the state without getting the switch-change event
|
|
|
$('#mySwitch').bootstrapSwitch('setOnLabel', onValue); // sets the text of the "on" label
|
|
|
$('#mySwitch').bootstrapSwitch('setOffLabel', offValue); // sets the text of the "off" label
|
|
|
+$('#mySwitch').bootstrapSwitch('setTextLabel', labelValue); // sets the text of the middle label
|
|
|
+$('#mySwitch').bootstrapSwitch('setIconLabel', iconValue); // sets the icon of the middle label
|
|
|
$('#mySwitch').bootstrapSwitch('setOnClass', onClass); // sets the left color class
|
|
|
$('#mySwitch').bootstrapSwitch('setOffClass', offClass); // sets the right color class
|
|
|
$('#mySwitch').bootstrapSwitch('setAnimated', animated); // sets true or false for animation
|