MembersListSelector
Last updated
Last updated
Members List Selector
widget allows to display list of users with roles.
Parameters | Type | Description |
---|---|---|
|
| Supervisely |
|
| Enable multiple users selection |
|
| ID of the widget |
List of UserInfo
objects.
type: List[UserInfo]
If True
then multiple users can be selected. Otherwise, only one user can be selected.
type: bool
default False
ID of the widget.
type: str
default value: None
Attributes and Methods | Description |
---|---|
| Set members to widget. |
| Return list of selected members. |
| Select all members. |
| Deselect all members. |
| Select members by names. |
| Deselect members by names. |
| Set multiple flag. |
| Return list of all members. |
| Callback triggers when selection is changed. |
You can find this example in our Github repository:
supervisely-ecosystem/ui-widgets-demos/selection/018_members_list_selector/src/main.py
First, we load environment variables with credentials and init API for communicating with Supervisely Instance:
MembersListSelector
widget and Text
widget for displaying selected members countPrepare a layout for app using Card
widget with the content
parameter and place widget that we've just created into the Container
widget.
Create an app object with layout parameter.