Components

Common component properties

2min

Some properties are common to all components. See the details below:

When

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

Example and code snippet

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
When-Display a field

When.jigx




Updated 05 Nov 2024
Doc contributor
Did this page help you?