Low-code designer > Set up interfaces > Widget types > Element layout / Tabs

Tabs

By using Tabs, you can group associated data and divide a form into logical segments.

To place the widget on a form, drag it from the right panel of the interface designer to the canvas or click +Widget. Read more in Form templates.

Widget settings

Configure the widget in the opened window on the Main, Events, and System tabs.

Main tab

tabs 1

  • Hide single-page tabs. Check this box if you want to hide single-page tabs. You can enable this setting in two ways: by checking the box or by clicking on the link icon on the right of the field and selecting a Yes/No switch variable from the app’s or widget’s context. The value of the variable determines the tab’s visibility. If the widget has two or more tabs, they will be displayed regardless of the setting of this option.
  • Arrange horizontally. You can change the tabs’ layout to vertical instead of horizontal. You can do this in two ways: by checking the box or by clicking on the link icon on the right of the field and selecting the Yes/No switch variable from the app or widget’s context.

Events tab

tabs_events_tab

This tab allows you to customize the widget’s behavior by selecting functions from scripts that will be called when various events occur. On mouse enter handler and On mouse leave handler are available for any widget. Find out more in System widget settings.

For the Tabs widget, you can also set On tab change handler. The function selected for it is executed when you switch from one tab to another. For example, you can update the contents of a tab based on user-entered data.

System tab

The main system settings are the same for all widgets. They allow you to control widget visibility and access to widgets, etc. Read more in the System widget settings article.

For the Tabs widget, you can also enable the Load the contents when the tab is active option. Then widgets and data on the tab will be loaded only when you switch to it. This allows you to speed up the loading of a form or page.

When you add several tabs, you can change their order. To do that, click on a tab and drag it to a different place within the widget.

To finish configuring the widget, click Save. To make the form available to users, click Save and then Publish on the interface designer toolbar.

Add a tab

To create a tab in the widget:

  1. Click the + icon.

add_tab_01

  1. In the opened window, specify the title. You can also specify system settings for the new tab.

add_tab_02

  1. For each tab, add content that will be displayed if the user clicks on its title.

The created tabs can be rearranged, deleted, and their settings can be edited.

Example

In this case, the Tabs widget is used to divide the employee procedures into three categories.

T2