RuntimeContainer
Overview
The RuntimeContainer
class is designed to manage the styling of a container in a dynamic environment. One of its primary functions is to modify the visual appearance of the container by adding or removing style classes. This functionality allows for flexibility in managing the container’s style dynamically during runtime.
Additionally, the class provides methods to check for specific set of style classes in the container. This can be particularly useful for making conditional styling decisions based on the container's current style state.
For more granular control over the container's appearance, the setCSSStyle()
and removeCSSStyle()
methods may be used.
Methods Summarized
Adds one or more style classes to this container.
returns true if this container has all the classes give.
void
Removes a css style that was previously added.
Removes one or more style classes to this container.
void
Sets a css style to the container.
Methods Detailed
addStyleClasses(classes)
Adds one or more style classes to this container.
Parameters
Array classes one or more class names
Returns: Boolean
hasStyleClasses(classes)
returns true if this container has all the classes give.
Parameters
Array classes one or more class names
Returns: Boolean
removeCSSStyle(key)
Removes a css style that was previously added.
Parameters
String key css key to remove
Returns: void
removeStyleClasses(classes)
Removes one or more style classes to this container.
Parameters
Array classes one or more class names
Returns: Boolean
setCSSStyle(key, value)
Sets a css style to the container.
Parameters
Returns: void
Last updated