ElementTag
Last updated
Last updated
ElementTag
widget in Supervisely is a widget that allows users to display elements tag in the UI.
Parameters | Type | Description |
---|---|---|
|
|
|
|
|
|
|
| Whether |
|
| Background color of the |
|
| ID of the widget |
Determine ElementTag
text.
type: str
Determine ElementTag
theme.
type: Literal["primary", "gray", "success", "warning", "danger", None]
default value: None
Determine whether ElementTag
has a highlighted border.
type: bool
default value: False
Determine background color of the ElementTag
.
type: str
default value: ""
ID of the widget
type: str
default value: None
Attributes and Methods | Description |
---|---|
| Set |
| Return |
| Set |
| Return |
| Set |
| Get |
| Return |
| Set |
You can find this example in our Github repository:
supervisely-ecosystem/ui-widgets-demos/text elements/008_element_tag/src/main.py
First, we load environment variables with credentials and init API for communicating with Supervisely Instance:
ElementTag
widgetsPrepare a layout for app using Card
widget with the content
parameter and place widget that we've just created in the Container
widget.
Create an app object with layout parameter.