the maximum number of rows shown at once
the maximum number of columns shown at once
Private ReadonlyCOLUMNSPrivatecursorPrivatehandlerPrivate ReadonlyROWSPrivate OptionalscrollPrivatescrollPrivatetotalPrivate OptionalupdateOptional function that will get called if a single element's information needs to get updated
Private OptionalupdateOptional function that will get called if the whole grid needs to get updated
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
PrivatesetPrivatesetOptionalcursor: numberthe 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
UiHandlerHow to use:UiHandler.setup: Initialize with theUiHandlerthat 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: SetsetTotalElementsto the total number of elements in the list to displayUiHandler.processInput: callprocessNavigationInputto have it handle the cursor updates while calling the defined callbacksUiHandler.clear: callreset