API Docs
Select

Select

Adds select widgets with option to select single value.

import mercury as mr
 
# add select widget
my_selection = mr.Select(value="", choices=[], label="")
 
# access selected values
print(f"Selected values are {my_selection.value}")

Parameters

  • value (string) - initial selection.
  • choices (list of strings) - available choices in the widget.
  • label (string) - label near the widget.