Interface: BaseWidget

BaseWidget

Methods

get(name) → {Object}

Gets the value of the specified property.
Parameters:
Name Type Description
name String The name of the property.
Returns:
- The property's value.
Type
Object

getId() → {ID}

Returns the ID of the widget.
Returns:
- The ID of the widget
Type
ID

getValue() → {Object}

Returns the widget's value.
Returns:
- The widget's value.
Type
Object

hide()

Hides the widget.

isEnabled() → {Boolean}

Returns true if the widget is enabled.
Returns:
- True if enabled, otherwise false.
Type
Boolean

set(name, value)

Sets the value of the specified property.
Parameters:
Name Type Description
name String The name of the property.
value Object The new value.

setEnabled(Enabled)

Enables/disables the widget.
Parameters:
Name Type Description
Enabled Boolean True to enable the widget, false to disable.

setLabel(Label)

Sets the label on the button.
Parameters:
Name Type Description
Label String Text or HTML to set as the label on this button.

setLabel(Label)

Sets the label on the button.
Parameters:
Name Type Description
Label String Text or HTML to set as the label on this button.

setStyle(Object)

Set the widget-style
Parameters:
Name Type Description
Object Object with style-properties

setValue()

Sets the widget's value.
Parameters:
Type Description
Object The new value.

setValue()

Sets the widget's value.
Parameters:
Type Description
Object The new value.

show()

Shows the widget.

show()

Shows the widget. overriding base widget's show function to refresh chart