Set Display & Alignment
Set Display & Alignment is an action in Rule panel which is used to dynamically control the visibility and placement of elements on a page. It allows you to adjust their alignment (such as left, center, or right) while also supporting various display types like block
, inline
, flex
, and none
. This action helps manage how components appear and behave in the layout based on user interaction or events.
Properties and Explanation
Here are the steps to follow in order to use the set Display & Alignment action:
Display:
Display is a property of the action that defines how the selected element will be rendered, using layout types like (Block, Flex etc). Learn more
Inline
Flex Grow: Controls how much a flex item expands to fill space. Learn more
Flex Shrink: controls how much a flex item can shrink when space is limited. Learn more
Flex Basis: sets the initial size of a flex item before space is distributed. Learn more
Flex:
Flex Direction: sets the direction of items in a flex container (row or column). Learn more
Flex Wrap: controls whether flex items stay in one line or wrap onto multiple lines. Learn more
Align Content: adjusts spacing between rows in a multi-line flex container. Learn more
Justify Content: aligns flex items along the main axis (horizontally by default). Learn more
Align Items aligns flex items along the cross axis (vertically by default). Learn more
Flex / Row Gap: sets the space between rows or columns in a flex layout. Learn more
Full Configuration Example
Below is a screenshot of the Set display & alignment action configuration, showing all properties set for the Select Element id and Display:

A page contains a heading and a button. Using the event and condition setup, when the button is clicked, an action is triggered that changes the alignment of the heading based on the specified preferences in the rule panel.
Last updated