InputTag
Last updated
Last updated
InputTag
widget in Supervisely is a user interface element that allows users to add or remove tag labels to items (images, videos, volumes, and point clouds). It uses TagMeta
of the current project and allow to use them easily in Supervisely apps. InputTag
widget is a valuable tool for improving the organization and efficiency of Supervisely apps.
Parameters | Type | Description |
---|---|---|
|
|
|
|
| Max tag field width |
|
| ID of the widget |
Determine TagMeta
from which Tags
will be selected. Possible Tag
types: any_number
, any_string
, one_of_string
, none
.
type: TagMeta
Determine max tag field width.
type: int
default value: 300
ID of the widget.
type: str
default value: None
Attributes and Methods | Description |
---|---|
| Get input widget value property. |
| Set input widget value property. |
| Return current |
| set |
| Activate |
| Deactivate |
| Check |
| Check |
| Set given value in |
| Get current |
| Decorator function is handled when |
| Decorator function is handled when |
You can find this example in our Github repository:
ui-widgets-demos/input/003_input_tag/src/main.py
First, we load environment variables with credentials and init API for communicating with Supervisely Instance:
Project
ID and TagMeta
we will useInputTag
widgets for each TagMeta
in projectButton
and Text
widgets we will usePrepare 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.
Use the decorators to handle button click and tag values changing. We have button to change tags switch status and text field to show tags values changing.