Caplin Trader 4.5.2

Interface: module:caplin/element/Styler

module:caplin/element/Styler

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

For example, module:caplin/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.

Methods

style(vValue, mAttributes, oControl)

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.
Parameters:
Name Type Description
vValue Variant the control value.
mAttributes Map the attributes appropriate to the Styler implementation.
oControl module:caplin/control/Control the control.