Term2::Components::List
Inherits Term2::Model < Reference < Object
Constructors
Class methods
Fuzzy filter implementation using nucleoc library
Instance methods
Insert an item at the front of the list (Go: InsertItem(0, item)).
Move the cursor down by one item.
Public for Bubble Tea parity (Go: CursorDown()).
Allow setting enumerators by type (e.g. List::Enumerators::Bullet),
which matches how some ports express the Go API.
Init is the first function that will be called. It returns an optional initial command. To not perform an initial command return nil.
[NEW] Helper to get matches for an item index (visual index)
Select an item in the currently visible page by its index.
Public for Bubble Tea parity (Go: Select(i) where i is in VisibleItems()).
Update is called when a message is received. Use it to inspect the message and, in response, update the model and/or send a command.
View renders the program's UI, which is just a string. The view is rendered after every Update.
Nested types
- Term2::Components::List::DefaultDelegate
- Term2::Components::List::DefaultItem
- Term2::Components::List::Enumerators
- Term2::Components::List::FilterFunc
- Term2::Components::List::FilterState
- Term2::Components::List::FilteredItem
- Term2::Components::List::HelpMap
- Term2::Components::List::Item
- Term2::Components::List::ItemDelegate
- Term2::Components::List::KeyMap
- Term2::Components::List::Rank
- Term2::Components::List::Styles