| Name | Type | Default | ||||||
|---|---|---|---|---|---|---|---|---|
| checked | Boolean | false | ||||||
| Sets or gets the check state. Code examples
								Set the  
								Get the  
								Try it: checked is set to true
							 | ||||||||
| disabled | Boolean | false | ||||||
| Sets or gets whether the switch button is disabled. Code examples
								Set the  
								Get the  
								Try it: disabled is set to true
							 | ||||||||
| height | Number/String | null | ||||||
| Sets or gets the height. Code examples
								Set the  
								Get the  
								Try it: height is set to 30
							 | ||||||||
| orientation | String | 'horizontal' | ||||||
| Determines the jqxSwitchButton's orientation.Possible Values: Code examples
								Set the  
								Get the  
								Try it: orientation is set to 'vertical'
							 | ||||||||
| onLabel | String | 'On' | ||||||
| Sets or gets the string displayed when the button is checked. Code examples
								Set the  
								Get the  
								Try it: onLabel is set to 'On'
							 | ||||||||
| offLabel | String | 'Off' | ||||||
| Sets or gets the string displayed when the button is unchecked. Code examples
								Set the  
								Get the  
								Try it: offLabel is set to 'Off'
							 | ||||||||
| thumbSize | String | '40%' | ||||||
| Sets or gets the size of the thumb in percentages. Code examples
								Set the  
								Get the  
								Try it: thumbSize is set to '30%'
							 | ||||||||
| width | Number/String | null | ||||||
| Sets or gets the width. Code examples
								Set the  
								Get the  
								Try it: width is set to 80
							 | ||||||||
| Events | ||||||||
| checked | Event | |||||||
| This event is triggered when the switch button is checked. Code examples
								Bind to the   | ||||||||
| change | Event | |||||||
| This event is triggered when the switch button's state changes from one state to another. Code examples
								Bind to the   | ||||||||
| unchecked | Event | |||||||
| This event is triggered when the switch button is unchecked. Code examples
								Bind to the   | ||||||||
| Methods | ||||||||
| check | Method | |||||||
| Checks the button. 
 None Code example
								Invoke the  
								Try it: checks the jqxSwitchButton
							 | ||||||||
| disable | Method | |||||||
| Disables the switch button. 
 None Code example
								Invoke the  
								Try it: disable the jqxSwitchButton
							 | ||||||||
| enable | Method | |||||||
| Enables the switch button. 
 None Code example
								Invoke the  
								Try it: enables the jqxSwitchButton
							 | ||||||||
| toggle | Method | |||||||
| Toggles the check state. This method is automatically called when the user clicks the switch button. 
 None Code example
								Invoke the  
								Try it: toggles the jqxSwitchButton
							 | ||||||||
| uncheck | Method | |||||||
| Unchecks the button. 
 None Code example
								Invoke the  
								Try it: unchecks the jqxSwitchButton
							 | ||||||||
| val | Method | |||||||
| Sets or gets the value. 
 Boolean Code example
								Invoke the  // Get the value using jQuery's val()// Set value.// Set value using jQuery's val(). | ||||||||