FocusOrder
Description
Initializes the focus order manager with the merged cell getter and row and column index mappers used to navigate focus through merged regions.
Methods
buildFocusOrder
focusOrder.buildFocusOrder(selectedRanges)
Rebuilds the focus order list based on the provided selection.
| Param | Type | Description |
|---|---|---|
| selectedRanges | Array<CellRange> | The selected ranges to build the focus order for. |
getCurrentHorizontalNode
focusOrder.getCurrentHorizontalNode() ⇒ NodeStructure
Gets the currently selected node data from the horizontal focus order list.
getCurrentVerticalNode
focusOrder.getCurrentVerticalNode() ⇒ NodeStructure
Gets the currently selected node data from the vertical focus order list.
getFirstHorizontalNode
focusOrder.getFirstHorizontalNode() ⇒ NodeStructure
Gets the first node data from the horizontal focus order list.
getFirstVerticalNode
focusOrder.getFirstVerticalNode() ⇒ NodeStructure
Gets the first node data from the vertical focus order list.
getNextHorizontalNode
focusOrder.getNextHorizontalNode() ⇒ FocusNodeData
Gets the next selected node data from the horizontal focus order list.
getNextVerticalNode
focusOrder.getNextVerticalNode() ⇒ FocusNodeData
Gets the next selected node data from the vertical focus order list.
getPrevHorizontalNode
focusOrder.getPrevHorizontalNode() ⇒ FocusNodeData
Gets the previous selected node data from the horizontal focus order list.
getPrevVerticalNode
focusOrder.getPrevVerticalNode() ⇒ FocusNodeData
Gets the previous selected node data from the vertical focus order list.
setActiveNode
focusOrder.setActiveNode(row, column, selectionLayerIndex) ⇒ FocusOrder
Sets the active node based on the provided row and column.
| Param | Type | Description |
|---|---|---|
| row | number | The visual row index. |
| column | number | The visual column index. |
| selectionLayerIndex | number | The index of the selection layer to which the focus should be marked as active. |
setNextNodeAsActive
focusOrder.setNextNodeAsActive()
Sets the previous node from the horizontal focus order list as active.
setPrevNodeAsActive
focusOrder.setPrevNodeAsActive()
Sets the previous node from the vertical focus order list as active.