can i make toggle button?

i want to make toggle button…
When i press the button once kept pressed css state and one more click changed back to its original state
can i give event when click button?

A toggle button already exists in Webix:

http://docs.webix.com/desktop__toggle.html

You can use the onChange event to set your own CSS type.
Here’s the snippet: http://webix.com/snippet/a0d24fcd