Caplin Trader 4.7.1

Class: module:caplin/element/styler/StaleStyler

module:caplin/element/styler/StaleStyler

Constructor

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

Applies CSS styles to reflect the status of the object. Stylers are instantiated by the RendererFactory, which reads RendererType specifications from XML and instantiates the stylers by name.
Extends:

Extends

Methods

style(sValue, mAttributes, oControl) → {String}

Styles the supplied control with a stale CSS style, according to the supplied renderer attributes.
Parameters:
Name Type Description
sValue String The field value, which may be partially formatted, depending on when the Styler is applied.
mAttributes Map Renderer attributes, containing all needed state information needed.
Properties
Name Type Description
recordStatus String The model field representing the record status (object status).
staleClass String The CSS class to apply when the instrument is stale.
oControl module:caplin/element/Control The control to style
Returns:
The field value
Type
String

toString() → {String}

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