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:
tabs_index: Tuple[str,str]# The tab to be usedorder: Optional[int]=None# The order in the menu pathparent_tabs_index: Optional[Tuple[str,str]]=None# The parent tabs grouppadding: Optional[str]=None# Padding in the viewcols_size: Optional[str]=None# Horizontal sizerows_size: Optional[int]=None# Vertical sizejust_labels: Optional[bool]=None# Visual variantsticky: Optional[bool]=None# Follow the scroll or not
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:
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: