MCPcopy Create free account
hub / github.com/adobe/react-spectrum / isNextSelected

Function isNextSelected

packages/@react-spectrum/s2/src/TableView.tsx:2325–2331  ·  view source on GitHub ↗
(id: Key | undefined, state: TableState<unknown>)

Source from the content-addressed store, hash-verified

2323});
2324
2325export function isNextSelected(id: Key | undefined, state: TableState<unknown>) {
2326 if (id == null || !state) {
2327 return false;
2328 }
2329 let keyAfter = state.collection.getKeyAfter(id);
2330 return keyAfter != null && state.selectionManager.isSelected(keyAfter);
2331}
2332
2333export function isPrevSelected(id: Key | undefined, state: TableState<unknown>) {
2334 if (id == null || !state) {

Callers 1

TableView.tsxFile · 0.70

Calls 2

getKeyAfterMethod · 0.65
isSelectedMethod · 0.65

Tested by

no test coverage detected