Functions
-
addKeyboardHandlingForGrid( options = { options.focusTracker, options.gridItems, options.keystrokeHandler, options.numberOfColumns, [options.uiLanguageDirection] } ) → void
module:ui/bindings/addkeyboardhandlingforgrid~addKeyboardHandlingForGrid
A helper that adds a keyboard navigation support (arrow up/down/left/right) for grids.
Parameters
options
:
object
Configuration options.
Properties
options.focusTracker
:
FocusTracker
A focus tracker for grid elements.
options.gridItems
:
ViewCollection<View<HTMLElement>>
A collection of grid items.
options.keystrokeHandler
:
KeystrokeHandler
Keystroke handler to register navigation with arrow keys.
options.numberOfColumns
:
number | () => number
Number of columns in the grid. Can be specified as a function that returns
the number (e.g. for responsive grids).
[ options.uiLanguageDirection ]
:
string
String of ui language direction.
Returns
void
-
Every day, we work hard to keep our documentation complete. Have you spotted outdated information? Is something missing?
Please report it via our issue tracker.
With the release of version 42.0.0, we have rewritten much of our documentation to reflect the new import paths and features.
We appreciate your feedback to help us ensure its accuracy and completeness.