Caplin Trader 4.8.0

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(value, attributes, control) → {string}

Styles the supplied control with a stale CSS style, according to the supplied renderer attributes.
Parameters:
Name Type Description
value string The field value, which may be partially formatted, depending on when the Styler is applied.
attributes 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.
control 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