Skip to main content

 

 

 

 
Language:
 
Applies only to Traditional Web Apps
 
 
OutSystems

Tabs

Template:OutSystems/Documentation_KB/ContentCollaboration
  • Edit
    Collaborate with us
    Edit this page on GitHub
  • You can use the Tabs UI Pattern to display large sets of information, which can be split into different areas, while always remaining a click away.

    How to use the Tabs UI Pattern

    1. In Service Studio, in the Toolbox, search for Tabs.

      The Tabs widget is displayed.

      If the UI widget does not display, it may be because you used a ready-made app, which deletes unused widgets from the module. To make additional widgets available in your app:

      a. Go to Module > Manage dependencies.

      b. Search for and select the relevant Producer, for example OutSystemsUI. Ensure Show All is selected.

      c. On the Public elements for the selected Producer displayed on the right, ensure Show All is selected.

      d. Search for and select the element you want to add, and click Apply.

      e. In Service Studio, in the Toolbox, search for the widget again.

    2. From the Toolbox, drag the Tabs widget into the Main Content area of your application's screen.

      By default, the Tabs widget contains 3 Header Items (tab titles) and 3 Content Items (tab content). You can add or delete as many as required.

    3. Add the relevant content to each of the Header Item and Content Item placeholders. In this example, we add text. You can add forms, images, labels, etc.

    4. On the Properties tab, you can customize the Tabs look and feel by setting any of the optional properties, for example, which tab is displayed as the active tab when the page loads and whether the tabs are displayed vertically or horizontally.

    After following these steps and publishing the module, you can test the pattern in your app.

    Demo

    Properties

    Tabs

    Property Description
    ActiveTab (Text): Optional Defines which tab is active when the page loads.

    Examples

    • Blank - The first tab is the active tab.
    • "tab-two" - The second tab is the active tab.
    Orientation (Orientation Identifier): Optional If Vertical, the tabs are displayed vertically. If Horizontal, the tabs are displayed horizontally. This is the default.
    IsJustified (Boolean): Optional If True, the Tabs are evenly distributed in the space available. If False, the Tabs are left aligned. This is the default.
    IsRight (Boolean): Optional If True, the Tabs are displayed to the right of the Tab content. If False, the Tabs are displayed to the left of the Tab content. This is the default. Note: This setting is only applicable if the Orientation property is set to Vertical.
    ExtendedClass (Text): Optional Adds custom style classes to the Pattern. You define your custom style classes in your application using CSS.

    Examples

    • Blank - No custom styles are added (default value).
    • ''myclass'' - Adds the myclass style to the UI styles being applied.
    • ''myclass1'' ''myclass2'' - Adds the myclass1 and myclass2 styles to the UI styles being applied.
    You can also use the classes available on the OutSystems UI. For more information, see the OutSystems UI Live Style Guide.

    Tabs Header Item

    Property Description
    DataTab (Text): Mandatory Sets the name to connect to the Tabs Content Item. Should be the same as the paired Header Item and unique.

    Tabs Content Item

    Property Description
    DataTab (Text): Mandatory Value that connects with the Tabs Header Item. Should be the same as the paired Content Item and unique.
    • Was this article helpful?