Caplin Trader 5.1.0

Interface: module:ct-element/Styler


A Styler is used to changes some visual aspect of a control.

For example, module:ct-element/styler/FlashStyler is used to flash the foreground and background colors of a control according to the new value.

All Styler implementations are singletons.


style(value, attributes, control)

Changes the control appearance according to the new value.

Implement initialStyle with the same parameters to do separate handling for the style application during createHtml.

Name Type Description
value Variant

the control value.

attributes Map

the attributes appropriate to the Styler implementation.

control module:ct-control/Control

the control.