function toggleBuilder()
Creates a view builder for a toggle (checkbox/switch) element.
function toggleBuilder(
text?: BindingOrValue<StringConvertible>,
): ToggleBuilder;
Parameters
- text — The text to display next to the toggle, or a binding.
Return value
A builder object for configuring the toggle.
Static members
function fmt() static
Creates a view builder for a toggle element with localizable or dynamic text.
Related
class UIToggle
A view class that represents a checkbox or toggle input.class UIToggle
A view class that represents a checkbox or toggle input.
