Docs (4.0.0)
ui type

type PresetType

Type definition for a UI component preset object.

static

type PresetType<T extends UIComponent> = View.ViewPreset<T> & {
    variant?: UIVariant<T>;
}

Notes

  • This type is used to define the properties, bindings, and event handlers that can be preset on UI components using functions such as ui.button(...).
  • The variant property can be used to specify a UIVariant object.

Related

  • uiAn object with functions for creating UI components and other resources.
  • type View.ViewPreset staticType definition for the object that can be used to initialize a preset view.
  • class UIVariantAn object that includes predefined properties for a UI component.