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
Methods Detailed
addStyleClasses(classes)
Adds one or more style classes to this container.
Parameters
Array classes one or more class names
Returns: Boolean true if the style classes were successfully added.
hasStyleClasses(classes)
returns true if this container has all the classes give.
Parameters
Array classes one or more class names
Returns: Boolean true if this container has all the specified classes.
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 true if the style classes were successfully removed.
setCSSStyle(key, value)
Sets a css style to the container.
Parameters
Returns: void
Last updated
Was this helpful?