how many elements are hidden due to scrolling
Update the cursor and scrollCursor based on user input
the button that was pressed
true
if either the cursor or scrollCursor was updated
Reset the scrolling
the total number of elements that the grid needs to display
Set function that will get called if the whole grid needs to get updated
UpdateGridCallbackFunction
this
Set function that will get called if a single element in the grid needs to get updated
UpdateDetailsCallbackFunction
this
A helper class to handle navigation through a grid of elements that can scroll vertically Needs to be used by a
UiHandler
How to use:UiHandler.setup
: Initialize with theUiHandler
that handles the grid, the number of rows and columns that can be shown at once, an optionalScrollBar
, and optional callbacks that will get called after scrollingUiHandler.show
: SetsetTotalElements
to the total number of elements in the list to displayUiHandler.processInput
: callprocessNavigationInput
to have it handle the cursor updates while calling the defined callbacksUiHandler.clear
: callreset