onChange( )


Adds an event handler that runs when the multi-state box moves to a new state.

onChange is fired when the multi-state box moves to a new state. This occurs when the changeState() function is called.

Method Declaration
Copy
Method Parameters
eventHandlerfunctionRequired

eventHandler(event: Event): void The name of the function or the function expression to run when the multi-state box moves to a new state.

Returns
Return Type:MultiStateBox
Did this help?