Tabs
Tabs give the option to separate elements further by grouping them, and only showing a handfull each time. Tabs reset the order so they can be thinked of as subpaths but work as components so they are very versatile! In the following images we can see that groups of components with complex behaviour (bentobox and grid behaviour) are being rendered correctly:
Usage
To use it you just have to define the location of the chart the same way you define the menu, it needs a tabs group name and the name of the tab where it will be inserted:
The function is called s.plt.set_tabs_index
and it has the parameters:
To change the tab being used the function s.plt.change_current_tab
has to be used, an example on how to use the tabs functionality:
Positioning & Style Variants
Tabs can stick to the top of the screen when scrolling by setting the parameter sticky
to True
. They also have two variants, one where they are enclosed:
and one where they are separated:
Recursive Inclusion
Tabs groups can be included in other tabs groups, this brings a lot of flexibility on the separation of information and distribution of elements. To use this functionality the parameter parent_tabs_index
has to be used to inform where to include the tabs group.
The different styles of tabs can be useful to differentiate between shallower and deeper tabs, the following example uses two types of tabs:
Last updated