Last updated
Was this helpful?
Last updated
Was this helpful?
Menu
widget from Supervisely is a useful tool for organizing and navigating in Supervisely apps. With Menu
widget, users can create custom menus that shows different parts and widgets of the app. These menus can be organized by groups.
Determine list of menu Items
.
type: List[Menu.Item]
default value: None
Determine list of menu Groups
.
type: List[Menu.Group]
default value: None
Sets the active Menu
at the given index.
type: str
default value: None
Determines width of the left part of Menu
in %.
type: int
default value: 25
ID of the widget.
type: str
default value: None
You can find this example in our Github repository:
First, we load environment variables with credentials and init API for communicating with Supervisely Instance:
Menu
itemsMenu
groupsMenu
widgetCreate an app object with layout parameter.
items
List[Menu.Item]
List of Menu
Items
groups
List[Menu.Group]
List of Menu
Groups
index
str
Sets the active Menu
at the given index
width_percent
int
Width of the left part of Menu
in %
widget_id
str
ID of the widget