Raxol.UI.Components.Input.SelectList.Navigation (Raxol v2.0.1)

View Source

Navigation helper for SelectList component. Handles arrow key navigation, home/end, and page up/down.

Summary

Functions

Clears the current search filter.

Handles arrow down navigation.

Handles arrow up navigation.

Handles end key navigation (go to last item).

Handles home key navigation (go to first item).

Handles page down navigation.

Handles page up navigation.

Handles search/filter navigation.

Updates the scroll position to ensure selected item is visible.

Functions

clear_search(state)

Clears the current search filter.

handle_arrow_down(state)

Handles arrow down navigation.

handle_arrow_up(state)

Handles arrow up navigation.

handle_end(state)

Handles end key navigation (go to last item).

handle_home(state)

Handles home key navigation (go to first item).

handle_page_down(state)

Handles page down navigation.

handle_page_up(state)

Handles page up navigation.

handle_search(state, query)

Handles search/filter navigation.

update_scroll_position(state)

Updates the scroll position to ensure selected item is visible.