nanome.api.ui.dropdown_item module

class DropdownItem(name='item')[source]

Bases: nanome._internal.ui.models._DropdownItem

Represents a dropdown item in a dropdown menu
clone()[source]
Returns a deep copy this DropdownItem.
Type:DropdownItem
close_on_selected
Whether or not this item will close the Dropdown after being selected
Setting this value to false can allows for multiple items to be selected.
Type:bool
name
The name of the Dropdown item.
This text is displayed on the item when the Dropdown expands
and in the collapsed Dropdown when the item is the selected item.
Type:str
selected
Whether or not this item is selected.
In the case that a single DropdownItem is selected in a Dropdown,
the item’s text will appear on the Dropdown when it is collapsed
Type:bool