Components
Common component properties
2min
when - this property is used at two levels, in components to show/hide any component conditionally and in actions to execute/not execute an action.
Below are the settings to use with the when property:
- when: true
- when: false
- when: =@ctx set with an expression
The example below demonstrates how the when property is used at a component level to display a component.text-field (Note requirements) only when the component.checkbox (Special Diet) is selected.
When-Display a field