Sidebar
Last updated
Last updated
Sidebar
widget from Supervisely is a tool that provides quick access to important information and features in Supervisely apps. Sidebar
is a vertical panel that appears on the left side of the app interface and includes widget user will placed in. Sidebar
widget is a useful tool for streamlining workflows and improving user productivity in the apps.
Determine Widget
to display in left part of Sidebar
.
type: Widget
Determine Widget
to display in right part of Sidebar
.
type: Widget
Determines width of the left part of Sidebar
in %.
type: int
default value: 25
Height of sidebar, can be set in px
,%
or hv
.
type: str
Add paddings for full screen apps.
type: bool
default value: False
ID of the widget.
type: str
default value: None
You can find this example in our Github repository:
ui-widgets-demos/layouts and containers/009_sidebar/src/main.py
First, we load environment variables with credentials and init API for communicating with Supervisely Instance:
Sidebar
widgetCreate an app object with layout parameter.
Parameters | Type | Description |
---|---|---|
left_content
Widget
Widget to display in left part of Sidebar
right_content
Widget
Widget to display in right part of Sidebar
width_percent
int
Width of the left part of Sidebar
in %
height
str
Height of sidebar, can be set in px, % or hv
standalone
bool
Add paddings for full screen apps
widget_id
str
Id of the widget