Docs (4.0.0)
Controls

class UILabel

A view class that represents a label control.

class UILabel
extends UIComponent

Description

A label component is rendered on-screen as a stand-alone piece of text.

Constructor

Type Members

Instance Members

  • textThe label text to be displayed.
  • iconThe label icon to be displayed.
  • iconSizeIcon size (in pixels or string with unit).
  • iconMarginSpace between the icon and label text (in pixels or string with unit).
  • iconColorIcon color.
  • wrapTrue if text should wrap if the text is too long to fit on one line.
  • selectableTrue if text should be user-selectable using input gestures, mouse, or keyboard.
  • headingLevelText heading level.
  • titleTrue if the title label style should be applied to this label.
  • smallTrue if the small label style should be applied to this label.
  • htmlFormatTrue if text should be rendered as HTML instead of plain text.
  • allowFocusTrue if this label may receive input focus.
  • allowKeyboardFocusTrue if this label may receive input focus using the keyboard (e.g. Tab key).
  • widthTarget width of the label, in pixels or CSS length with unit.
  • boldTrue if this label should be displayed using bold text.
  • italicTrue if this label should be displayed using bold text.
  • colorThe text color to be applied to this label.
  • dimThe opacity to be applied to this label, or true to use 50% opacity.
  • styleThe style to be applied to this label.

Inherited Members