Toggle
methodsChange the state of a togglable button.
This method does not trigger the
toggleevent!
Parameters:commandString|Element|jQuery
stateBoolean
A string, DOM element or jQuery object which represents the togglable button which state will be changed. A string is treated as jQuery selector.
A boolean flag that determines whether the button will be toggled or not.