Elements and Widgets

Tabs

11min

Tabs is a widget used to display content that is grouped by tab. You can switch between tabs. 

Document image


The widget consists of:

  • Tabs Menu with Tab Titles
  • Tabs Content with the Tab Panes nested inside, each of which is relevant to one of the tabs

You can add any elements and widgets to the Tab Title and Tab Pane elements.

Horizontal and vertical tabs

By default, the widget has a horizontal view. You can change it to vertical using the Styles tab in the right panel. 

Horizontal tabs
Horizontal tabs

Vertical tabs
Vertical tabs


To do this:

  • for the Tabs element, in the Auto Layout section, set Direction to horizontal (right arrow),
  • for the Tabs Menu element, in the Auto Layout section, set the Direction to vertical (down arrow)

Tabs settings

On the Settings tab in the right panel, you can control the content and operation of the widget.

In the settings, you can select the action that will result in the Transition event. Click is the default action for the Transition event. You can also select Hover.

Document image


Managing Tabs elements

You can manage the Tabs elements, i.e. you can:

  • add an element by clicking on “+”
Document image

  • delete an element by clicking on “-”
Document image

  • move an element by holding the icon with three stripes to the left of the element name
Document image


Tab elements structure

Tab Title elements have the same structure and styles by default. The same also applies to Tab Pane elements. For example, if you nest an Image element into one of the Tab Title elements, the same element will be added to all other Tab Titles.

Document image


You can use Apply independent structure setting with the tabs. It allows you to make the structure of these elements independent of each other. That is, each element can have different elements and widgets with different styles. Once this setting is enabled, it cannot be cancelled.

Document image


Animation

You can set up animation when switching between the tabs. 

Document image


Animation settings offer the following options:

  • Effect type defines the effect to be used when opening a tab
    • None
    • Fade (default)
    • Slide Horizontal
    • Slide Vertical
  • Smoothness and duration of animation when opening and closing a tab (Open/Close) 
    • Animation smoothness is defined with Bezier curves, showing the speed of animation at different stages. You can select the desired type from the dropdown list. The default type is Linear.
    • Animation duration (in milliseconds). You can select animation duration from 0 to 2000ms from the dropdown list. The default value is 200ms.

Editing Tabs content

You can switch between Tab Panes using the Settings tab.

Clicking on the tab name switches to the Tab Pane element of the corresponding tab on the Canvas.

For example: 

Click on the [Tab 2] in the settings
Click on the [Tab 2] in the settings

You will be switched to the Tab Pane [Tab 2] element in the Canvas
You will be switched to the Tab Pane [Tab 2] element in the Canvas


After switching to the desired Tab Pane, you can edit the content of this tab.

Tabs styles

You can style the Tabs widget using the Styles tab in the right panel. You can style both the entire widget and its individual elements. For example, you can set borders, margins and paddings for the whole Tabs widget, as well as paddings for Tab Panes.

Document image


Styling an open Tab element

To style an open (active) element, use the Opened state

Document image


Style an element for this state. For example, you can set the background and borders for the Tab Title and Tab Pane.

Document image




Updated 14 Feb 2024
Did this page help you?