Docs (4.0.0)
ui method

label

Creates a preset UILabel constructor using the provided options.

static

label(preset: ui.PresetType<UILabel>, text?: BindingOrValue<string | LazyString>, style?: UIVariant<UILabel> | UIStyle.TypeOrOverrides<UILabel.StyleType>): ViewClass<UILabel>

label(text?: BindingOrValue<string | LazyString>, style?: UIVariant<UILabel> | UIStyle.TypeOrOverrides<UILabel.StyleType>): ViewClass<UILabel>

Parameters

  • preset — The properties, bindings, and event handlers that will be preset on each instance of the resulting class
  • text — Preset label text
  • style — Preset label style (optional)

Return value

A new class that extends UILabel

Related

  • uiAn object with functions for creating UI components and other resources.