list (cellium v0.1.0)
View SourceList widget module for rendering scrollable lists of items.
This module provides an interactive list widget that handles keyboard events for selection and scrolling.
Usage
Basic list:
{list, [{id, my_list}, {items, ["Item 1", "Item 2", "Item 3"]}]}Properties
items(list of strings): The items to display in the list.selected_index(integer): The index of the currently selected item.scroll_offset(integer): The index of the first item to display.focusable(boolean): Always true for lists.focused(boolean): Set by focus manager when the list has focus.
Summary
Functions
Handles keyboard events for the list.
Creates a new list widget with no items.
Creates a new list widget with the specified items.
Renders the list widget.
Functions
Handles keyboard events for the list.
Processes arrow keys for selection and scrolling.
Creates a new list widget with no items.
Creates a new list widget with the specified items.
Renders the list widget.