applyViewPreset
Applies the provided preset properties to this object.
applyViewPreset(preset: View.ViewPreset<UIComponent, this, "label" | "state" | "formField" | "disabled" | "style" | "labelStyle"> & { onChange?: string; }): void
Notes
- This method is called automatically. Do not call this method after constructing a UI component.
Related
- class UIToggleA view control that represents a checkbox or toggle input.