new module:ct-element /styler /Class Styler()
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
|
|||||||||
control |
module:ct-control |
The control. |
- Overrides: