Caplin Trader 4.5.2

Class: module:caplin/element/styler/ClassStyler

module:caplin/element/styler/ClassStyler

Constructor

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

Applies a CSS class to a control, conditionally on the value of some state variable.

ClassStyler is typically used in the XML Renderer Framework.

Extends:

Extends

Methods

style(value, attributes, control)

Applies a CSS class to a control, conditionally on the value of some state variable.
Parameters:
Name Type Description
value Variant The control value.
attributes Map The map of attributes.
Properties
Name Type Description
state boolean state variable.
class String CSS class name to add or remove.
control module:caplin/control/Control The control.