Widget

The base class of the lumino widget hierarchy.
https://jupyterlab.github.io/lumino/widgets/classes/widget.html

This class will typically be subclassed in order to create a useful widget. However, it can be used directly to host externally created content.

Example
//Python:
import dash
import dash_lumino_components as dlc

dock = dlc.DockPanel([
    dlc.Widget(
        "Content",
        id="test-widget",
        title="Title",
        icon="fa fa-folder-open",
        closable=True,
        caption="Hover label of the widget"
    )],
    id="dock-panel")

Type Definitions

propTypes

Properties
NameTypeDescription
idstring

ID of the widget

childrenObject | Array.<Object>

The children of this component

titlestring

The title of the widget

closableboolean

Is the widget closable

captionstring

The long title of the widget

deletedboolean

Is the widget deleted. Note: In the future this might dissapear and the deleted widgets are automatically removed from the dom.

iconstring

The icon of the widget (a cass class name)

setProps

Dash-assigned callback that should be called to report property changes to Dash, to make them available for callbacks.