A UI component that may be opened or closed.

Dispatches Event.OPEN and Event.CLOSE when the current state changes.

Available since

1.0.0

.

Variables

opened:Bool

Indicates if the toggle is opened or closed.

Dispatches an event of type openfl.events.Event.OPEN when changed to true, and dispatches an event of type openfl.events.Event.CLOSE when changed to false.

Available since

1.0.0

.