Caplin Trader 5.1.0

Class: module:ct-element/styler/ButtonStyler

module:ct-element/styler/ButtonStyler()

new module:ct-element/styler/ButtonStyler()

Applies CSS styles to reflect status states.

ButtonStyler is typically used in the XML Renderer Framework.

Extends:

Extends

Methods

style(value, attributes, control)

Styles the supplied control with stale CSS styles, according to the supplied renderer attributes.

Parameters:
Name Type Description
value Variant

the value.

attributes Map

the map of attributes.

Properties
Name Type Description
state string

the current state of the field the button is listening to.

enabled-states string

a comma seperated list of states in which the button will be enabled

enabled-tooltip string

the tooltip that will be applied to the button when it is enabled

disabled-tooltip string

the tooltip that will be applied to the button when it is disabled

control module:ct-control/Control

the control.

Overrides:

toString() → {string}

Returns a human-readable string representation of the styler, which is useful for debugging.

Overrides:
  • module:ct-element/Styler#toString
Returns:

The string representation

Type
string