Raxol.UI.Components.Input.SelectList.Navigation (Raxol v2.0.1)
View SourceNavigation 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
@spec clear_search(Raxol.UI.Components.Input.SelectList.t()) :: Raxol.UI.Components.Input.SelectList.t()
Clears the current search filter.
@spec handle_arrow_down(Raxol.UI.Components.Input.SelectList.t()) :: Raxol.UI.Components.Input.SelectList.t()
Handles arrow down navigation.
@spec handle_arrow_up(Raxol.UI.Components.Input.SelectList.t()) :: Raxol.UI.Components.Input.SelectList.t()
Handles arrow up navigation.
@spec handle_end(Raxol.UI.Components.Input.SelectList.t()) :: Raxol.UI.Components.Input.SelectList.t()
Handles end key navigation (go to last item).
@spec handle_home(Raxol.UI.Components.Input.SelectList.t()) :: Raxol.UI.Components.Input.SelectList.t()
Handles home key navigation (go to first item).
@spec handle_page_down(Raxol.UI.Components.Input.SelectList.t()) :: Raxol.UI.Components.Input.SelectList.t()
Handles page down navigation.
@spec handle_page_up(Raxol.UI.Components.Input.SelectList.t()) :: Raxol.UI.Components.Input.SelectList.t()
Handles page up navigation.
@spec handle_search(Raxol.UI.Components.Input.SelectList.t(), String.t()) :: Raxol.UI.Components.Input.SelectList.t()
Handles search/filter navigation.
@spec update_scroll_position(Raxol.UI.Components.Input.SelectList.t()) :: Raxol.UI.Components.Input.SelectList.t()
Updates the scroll position to ensure selected item is visible.