Docs (4.0.0)
Controls

class UIButton

A view class that represents a button control.

class UIButton
extends UIComponent

Description

A button component is rendered on-screen as a button control.

Constructor

Type Members

Instance Members

  • applyViewPreset(preset)Applies the provided preset properties to this object.
  • labelThe button label to be displayed.
  • iconThe button icon to be displayed.
  • iconSizeIcon size (in pixels or string with unit).
  • iconMarginSpace between icon and label text (in pixels or string with unit).
  • iconColorIcon color.
  • chevronDirection of chevron icon to be placed at the far end of the button, if any.
  • chevronSizeChevron icon size (in pixels or string with unit).
  • chevronColorChevron icon color.
  • navigateToNavigation target to navigate to when this button is clicked.
  • pressedThe current visual selection state.
  • valueAn option value that this button represents, if any.
  • disableKeyboardFocusTrue to disable keyboard focus (e.g. Tab key) for this button.
  • disabledTrue if user input should be disabled on this control.
  • widthTarget width of this button, in pixels or CSS length with unit.
  • primaryTrue if the primary button style should be applied to this label.
  • styleThe style to be applied to this button.
  • getNavigationTarget()Returns the navigation target for this button.

Inherited Members