Control Navigation Bar

The Control Navigation Bar action allows you to programmatically control the navigation bar’s selected index. This can be used to switch between tabs or navigation items dynamically.

Note: This action only works when a navigation bar is present in the current UI.

Use Cases

  • Programmatically switch the active tab based on user actions.

  • Synchronize navigation bar state with other components or events.

  • Control navigation from outside the navigation bar widget.

Properties

Property
Description

index

The zero-based index of the navigation bar item to activate. Defaults to 0.

Default Behavior

  • Changes the active navigation item to the specified index.

  • If the index is out of range, no change occurs.

How to Use

  1. Attach the action to an event (e.g., button press).

  2. Select Control Navigation Bar from the action list.

  3. Specify the index of the navigation item to select.

Last updated