- Source
//Python:
import dash
import dash_lumino_components as dlc
dock = dlc.DockPanel([
dlc.Widget(
"Example Content",
id="initial-widget",
title="Hallo",
icon="fa fa-folder-open",
closable=True)
], id="dock-panel")
Methods
loadLayout(newlayout)
Function to load the layout back in
recursively replace the widgets in the components dictionary
Name | Type | Description |
---|---|---|
newlayout |
- Source
updateLayout()
Serialize the layout without widget instances
- Source
Type Definitions
propTypes
PropertiesName | Type | Description |
---|---|---|
id | string | ID of the widget |
mode | string | mode for the dock panel: ("single-document" | "multiple-document") |
spacing | number | The spacing between the items in the panel. |
addToDom | boolean | bool if the object has to be added to the dom directly |
children | Array.<Widget> | The widgets |
widgetEvent | PropTypes. | Widget events |
layout | PropTypes. | Layout similar to DockPanel.ILayoutConfig (https://phosphorjs.github.io/phosphor/api/widgets/interfaces/docklayout.ilayoutconfig.html) Examples:
Note! Use widget id in widget arrays! |
setProps | Dash-assigned callback that should be called to report property changes to Dash, to make them available for callbacks. |
- Source