Caplin Trader 4.7.1

Class: module:caplin/element/styler/ButtonStyler

module:caplin/element/styler/ButtonStyler

Constructor

new module:caplin/element/styler/ButtonStyler()

Applies CSS styles to reflect status states. ButtonStyler is typically used in the XML Renderer Framework.
Extends:

Extends

Methods

style(vValue, mAttributes, oControl)

Styles the supplied control with stale CSS styles, according to the supplied renderer attributes.
Parameters:
Name Type Description
vValue Variant the value.
mAttributes 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
oControl module:caplin/control/Control the control.

toString() → {String}

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