OutSystems makes available a Web UI library called the RichWidgets. One of the behaviors that you can find in this library are client side tabs. With the client side tabs widget, you can create a tabbed screen in which the whole content is loaded on the first request (see the screenshot below).
The benefit of client side tabs is the fact that switching between tabs is extremely fast (it is a client side operation). On the other hand, you can expect for the first screen load to be a heavier operation due to the fact that all the tabs content has to be loaded.
The goal of this HowTo is to give you an overview of how you can use the OutSystems client side tabs widget.
This HowTo includes an example implementation of client side tabs in the attached eSpace ClientTabs_Sample.oml.
To explain the usage of the OutSystems client side tabs widget, I will use a simple example. In this example we want to do the following:
You can see the implementation of this example in the attached eSpace ClientTabs_Sample.oml (developed in Service Studio 5.1). To see it working, simply publish the eSpace in your community edition.
From a high level perspective, to implement the tabs of the Employee_Edit screen, we simply have to create a container structure like the one depicted below. A detailed description of how the example is implemented follows.
In the preparation of the screen, retrieve all the data needed for each of the tabs.
In your page, create the main container for your tabs - it must have the style Tabs_Wrapper;
Add the Tabs_ClientSide web block (of the RichWidgets library) to the top of the Tabs_Wrapper container;
For each tab that you want to create, insert a container with style Tabs_TabBody inside the Tabs_Wrapper container and after the Tabs_ClientSide web block. Each container of these will generate a tab in the user interface:
The result of this example can be seen in the screenshot below.
Hi Daniel,
Still new in using this widget, I have a Table Widget within the Tab Widget were in the first column of the said Table has a link that navigates to a different web screen. It's not working, still not familiar on the scope/conditions of the Tab Widget. What do you think is the issue?
Please advise.
Thank you and kind regards,
Christopher
Hi! I have a question, it's there a way to create tabs dynamically?
Leidy Navarro wrote:
Hello Leidy,
Using the provided Tabs by SILK, you cannot do it!
What you can do is develop a logic using IF's inside the Tabs headers according to your dynamic logic.
Regards
Pedro Domingues wrote:
How can i do that?
I am also interessed to see how can we create tabs dinamically.
TIA
There are only 3 tabs coming by default . If i want to have multiple tabs . How to do that
Hi All,Is it have LoadOnClick function ? I use it for many tabs, and its look slow when opening the screen.Thanks
Question - where is an example of server side tabs? I understand this is recommended by Outsystems for web performance.
Is there a way to create the tabs on the side of the panel, not just the top ?
Hi everyone can you please tell me how to add tabs when users clicks on add tab button
Thanks,
Akash Gunupudi.
Hi Akash,
What do you mean by "clicks on add tab button"?
Are you trying to add Tabs on the fly?