Tab Panels
Context
This tab-panel component gathers all the related contents or another resources of the main element displayed, in order to save vertical space. Clicking on the tab will activate the created panel to show the content.
Mainly is used within the layout_item or the layout_center, after the main content of the resource.
Usage
This component receives an array of hashes, and rearrange the output of each item into a tab-panel structure. Available properties for each panel:
enabled: Boolean. Conditionally render the tab
id: String. Unique id
text: String. Tab title
icon: String. Remixicon key
method: Symbol. Any function rails understands
args: Array. Arguments for the previous method
Display | Values |
---|---|
|
|
plain text |
|
Source code on GitHub: decidim-core/app/cells/decidim/tab_panels