class

TUI::OptionListSource

Inherits TUI::ListDataSource < Reference < Object

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).

Constructors

new(title : String, options : Array(FormEnumOption))
Source

Instance methods

option_at(index : Int32) : FormEnumOption
Source
reload(filter : String, sort : Symbol) : Nil
Source
size
Source
sort_keys
Source
title(filter : String, sort_key : Symbol) : String
Source