Use the tdnb.multi_select() function to create a multi select widget.
Required Parameters
- name
- Specifies the name of the widget. Specify unique name for the widget. The value of this argument gets the value of this widget using the get() utility.
- default_value
- Specifies the default value of text to be placed while creating the widget.
- choices
- Specifies the dropdown values.
- label
- Specifies the label for the widget.
Example
Create a multi_select widget with name multiselect_widgetby setting default value as 1 and remaining dropdown values as 10, 20, 30. Keep the label as MultiSelect Label.
from teradatamlwidgets import tdnb
tdnb.multi_select('multiselect_widget', 1, [10, 20, 30], 'MultiSelect Label'