UserInterfaceControl

UserInterfaceControl

(abstract) new UserInterfaceControl(terria)

Description:
  • The view-model for a control in the user interface
Parameters:
Name Type Description
terria Terria The Terria instance.

Members

cssClass :String

Description:
  • Gets or sets the CSS class of the control. This property is observable.
Gets or sets the CSS class of the control. This property is observable.
Type:
  • String

isActive :Boolean

Description:
  • Gets or sets the property describing whether or not the control is in the active state. This property is observable.
Gets or sets the property describing whether or not the control is in the active state. This property is observable.
Type:
  • Boolean

name :String

Description:
  • Gets or sets the name of the control which is set as the controls title. This property is observable.
Gets or sets the name of the control which is set as the controls title. This property is observable.
Type:
  • String

svgHeight :Integer

Description:
  • Gets or sets the height of the svg icon. This property is observable.
Gets or sets the height of the svg icon. This property is observable.
Type:
  • Integer

svgIcon :Object

Description:
  • Gets or sets the svg icon of the control. This property is observable.
Gets or sets the svg icon of the control. This property is observable.
Type:
  • Object

svgWidth :Integer

Description:
  • Gets or sets the width of the svg icon. This property is observable.
Gets or sets the width of the svg icon. This property is observable.
Type:
  • Integer

terria :Terria

Description:
  • Gets the Terria instance.
Gets the Terria instance.
Type:
  • Terria

text :String

Description:
  • Gets or sets the text to be displayed in the UI control. This property is observable.
Gets or sets the text to be displayed in the UI control. This property is observable.
Type:
  • String

Methods

(abstract, protected) activate()

Description:
  • When implemented in a derived class, performs an action when the user clicks on this control.