toggle
Creates a preset UIToggle constructor using the provided options.
static
toggle(preset: ui.PresetType<UIToggle>): ViewClass<UIToggle>
Parameters
- preset — The properties, bindings, and event handlers that will be preset on each instance of the resulting class
Return value
A new class that extends UIToggle
Related
- uiAn object with functions for creating UI components and other resources.