- Source
//Python:
import dash
import dash_lumino_components as dlc
import dash_html_components as html
import dash_bootstrap_components as dbc
tabPanel = dlc.TabPanel(
[
dlc.Panel(
html.Div([
dbc.Button("Open Plot",
id="button2",
style={"width": "100%"})
]),
id="tab-panel-A"
label="Plots",
icon="fa fa-bar-chart")
],
id='tab-panel-left')
Type Definitions
propTypes
PropertiesName | Type | Description |
---|---|---|
id | string | ID of the widget |
tabPlacement | string | the placement of the tab bar relative to the content. ("left" | "right" | "top" | "bottom") |
tabsMovable | boolean | whether the tabs are movable by the user |
allowDeselect | boolean | bool if all tabs can be deselected |
width | number | the default width or height of the tab panel content |
addToDom | boolean | bool if the object has to be added to the dom directly |
children | Array.<Panel> | The widgets |
currentIndex | number | Get the index of the currently selected tab. It will be -1 if no tab is selected. |
setProps | Dash-assigned callback that should be called to report property changes to Dash, to make them available for callbacks. |
- Source