Dynamic properties

A dynamic property represents a state of a component that can affect its visual appearance, and/or behavior.

A dynamic property represents a state of a component that can affect its visual appearance, and/or behavior.

Each dynamic property consists of:

In order for a component to have a dynamic property, the component must have style rules associated with one or more of the pseudo-classes that correspond to the dynamic property.

Note:

The ::after and ::before pseudo-elements cannot be used with the pseudo-classes that belong to the dynamic properties.

The following table lists the available dynamic properties.

Name Purpose
cf2:ui.DynamicProperties#Enabled

Determines whether a component is enabled or not. When the property is set to 'true', the component is in the enabled state. Setting the property to 'false' disables the component.

cf2:ui.DynamicProperties#Displayed

Determines whether a component is displayed or not. When the property is set to 'true', the component is in the displayed state. When the property is set to 'false', then the component is in the concealed state, i.e. it is not displayed.

Related topics