Jx.Button Examples

API Reference: Jx.Button See Also: Jx.ButtonSet

Basic Buttons

A basic button normally triggers some action when it is clicked. It can have an icon, a label, both or nothing at all. All button subclasses support the same set of options.

Toggle Buttons

A button can be a toggle button, indicating that it is on or off. They can start on or off as well. Buttons can also be disabled and enabled programmatically. The first button starts disabled. The second button toggles the disabled state of the first one.

Button Sets

Toggle buttons can also be organized using a ButtonSet, so only one of the buttons can be active at a time. The button set also fires events, which we are using in this case (see the event log).