TagMetasList
Last updated
Last updated
TagMetasList
widget allows users to view a list of tag metas, it provide a flexible display option with a choice of single-column or multiple-column layouts. It also allows users to select or deselect one or more tags, making it easy to manage and organize object classes. This widget is a useful tool for visualizing and selecting tags in Supervisely.
Supervisely object class collection (TagMetaCollection
) or list of TagMeta
.
type: Union[TagMetaCollection, List[TagMeta]]
If True
display tag value type next to tag name.
type: bool
default value: True
If False
show the entire tag name if the name is quite lengthy
type: bool
default value: False
Enable tags selection.
type: bool
default False
Number of columns.
type: int
default 1
ID of the widget.
type: str
default value: None
You can find this example in our Github repository:
supervisely-ecosystem/ui-widgets-demos/media/014_tag_metas_list/src/main.py
First, we load environment variables with credentials and init API for communicating with Supervisely Instance:
Project ID
TagMetasList
widgetPrepare 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.
Parameters | Type | Description |
---|---|---|
Attributes and Methods | Description |
---|---|
tag_metas
Union[TagMetasCollection, List[TagMeta]]
Supervisely object class collection or list of object classes
show_type_text
bool
If True
display tag value type
limit_long_names
bool
If False
show the entire tag name if the name is quite lengthy
selectable
bool
Enable classes selection
columns
int
Number of columns
widget_id
str
ID of the widget
get_selected_tag_names()
Return list of selected tag names.