Caplin Trader 5.1.0

Class: module:ct-element/styler/ClassStyler

module:ct-element/styler/ClassStyler()

new module:ct-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:ct-control/Control

The control.

Overrides: