Module select_base

Module select_base 

Source

Structs§

DropdownLayer
Lightweight handle describing an overlay entry reserved for a dropdown.
FloatingLayer
Generic overlay handle for floating layers (tooltip, popover, dropdown, …).
OptionNode
Tree-shaped option node shared by TreeSelect and Cascader.
SelectOption
Flat option used by Select and AutoComplete.

Functions§

filter_options_by_query
Filter options by label using a case-insensitive contains match.
handle_option_list_key_event
Handle a key event for an option list and update the active index.
next_active_index
Internal helper: compute the next active index in a linear option list.
option_key_to_value
Convert a single key into a JSON value suitable for storing in Form.
option_keys_to_value
Convert a slice of keys into a JSON array value.
path_to_value
Convert a path of keys into a JSON array value.
toggle_option_key
Toggle a single key within a set of keys.
use_dropdown_layer
Hook: 专门为选择器系列组件保留的下拉浮层注册函数。
use_floating_layer
Internal helper: register/unregister a floating entry with the global OverlayManager for a given OverlayKind.
value_to_option_key
Convert a serde_json::Value coming from Form into an optional OptionKey.
value_to_option_keys
Convert a JSON value into a vector of option keys.
value_to_path
Convert a JSON value into a path of keys (used by Cascader).

Type Aliases§

CascaderNode
Alias for clarity when used by Cascader.
OptionKey
Shared key type used by selector-like components.
TreeNode
Alias for clarity when used by TreeSelect.