JqxSwitchButton: Difference between revisions

From NSB App Studio
Jump to navigation Jump to search
Line 15: Line 15:
   MsgBox "Changed!"
   MsgBox "Changed!"
End Function
End Function
'Set the checked property.
$("#jqxSwitchButton").jqxSwitchButton({ checked:true })
'Get the checked property.
var checked = $("#jqxSwitchButton").jqxSwitchButton("checked")
</pre>
</pre>



Revision as of 10:57, 29 August 2013

Description

The jqxSwitchButton represents a button widget that switches its checked state after a click. It is very similar to the jqxToggleButton, but it has different UI look.

Properties and Methods

See the complete documentation at jqWidget's site: http://www.jqwidgets.com/jquery-widgets-documentation/documentation/jqxbutton/jquery-button-getting-started.htm

Example

Function SwitchButton1_onchange()
  MsgBox "Changed!"
End Function

'Set the checked property.
$("#jqxSwitchButton").jqxSwitchButton({ checked:true })

'Get the checked property.
var checked = $("#jqxSwitchButton").jqxSwitchButton("checked")

Output