class
TUI::OptionListSource
- TUI::OptionListSource
- TUI::ListDataSource
- Reference
- Object
Overview
ListDataSource over a flat, static Array(FormEnumOption) — backs the
dropdown picker popup's option list. Filters by substring match on
each option's label; has no sort keys (a single flat list has
nothing to cycle through — ListView's own keys.size > 1 guard
already makes the 's' key a safe no-op here).
Defined in:
tui/widgets/option_list.crConstructors
Instance Method Summary
- #option_at(index : Int32) : FormEnumOption
- #reload(filter : String, sort : Symbol) : Nil
- #size : Int32
- #sort_keys : Array(Symbol)
- #title(filter : String, sort_key : Symbol) : String