Close#
func (DropdownMenuState) Close() DropdownMenuStateClose returns the closed state.
API 文档由 Go 源码生成,内容为英文。
type DropdownMenuState boolDropdownMenuState is caller-owned popup visibility. Its zero value is closed. Transitions are synchronous value operations and never schedule work.
Close#func (DropdownMenuState) Close() DropdownMenuStateClose returns the closed state.
Dismiss#func (DropdownMenuState) Dismiss() DropdownMenuStateDismiss closes the menu after selection or an application-owned dismiss action.
Escape#func (DropdownMenuState) Escape() DropdownMenuStateEscape closes the menu after the runtime routes an Escape key press.
IsOpen#func (state DropdownMenuState) IsOpen() boolIsOpen reports whether the dropdown menu should be painted.
Open#func (DropdownMenuState) Open() DropdownMenuStateOpen returns the open state.
OutsidePress#func (DropdownMenuState) OutsidePress() DropdownMenuStateOutsidePress closes the menu after the runtime identifies an outside press.
Toggle#func (state DropdownMenuState) Toggle() DropdownMenuStateToggle returns the opposite visibility state.