Docs (4.0.0)
class UIButton method

applyViewPreset

Applies the provided preset properties to this object.

applyViewPreset(preset: View.ViewPreset<UIComponent, this, "label" | "icon" | "iconSize" | "iconMargin" | "iconColor" | "chevron" | "chevronSize" | "chevronColor" | "navigateTo" | "disabled" | "width" | "pressed" | "value" | "primary" | "style"> & {
    disableKeyboardFocus?: BindingOrValue<boolean>;
}): void

Notes

  • This method is called automatically. Do not call this method after constructing a UI component.

Related