Singleton
caplin.element.styler

ClassStyler

Applies a CSS class to a control, conditionally on the value of some state variable..

ClassStyler is typically used in the XML Renderer Framework.

Constructor Summary

Attributes Name and Description
caplin.element.styler.ClassStyler()

Method Summary

Attributes Name and Description
void style(Variant vValue, Map mAttributes, caplin.control.Control oControl)

Applies a CSS class to a control, conditionally on the value of some state variable.

Constructor Detail

caplin.element.styler.ClassStyler()

Method Detail

void style(Variant vValue, Map mAttributes, caplin.control.Control oControl)

Applies a CSS class to a control, conditionally on the value of some state variable.

Attribute Options:

Option Description
state state variable
class CSS class name to add or remove

Parameters
Variant vValue the control value.
Map mAttributes the map of attributes.
caplin.control.Control oControl the control.