- Source
Example
//Python:
import dash
import dash_lumino_components as dlc
menu = dlc.Menu([
dlc.Command(id="com:openwidget", label="Open", icon="fa fa-plus"),
dlc.Separator(),
dlc.Menu([
dlc.Command(id="com:closeall", label="Close All", icon="fa fa-minus"),
dlc.Command(id="com:closeone",
label="Close One", icon="fa fa-minus"),
], id="extraMenu", title="Extra")
], id="openMenu", title="Widgets")
Type Definitions
propTypes
PropertiesName | Type | Description |
---|---|---|
id | string | The ID used to identify this component in Dash callbacks. |
title | string | The title of the menu |
iconClass | string | The icon class of the menu |
children | Array.<Command, Menu, Separator> | An array of the menu items (dlc.Command | dlc.Menu | dlc.Separator) |
- Source