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

Function isNextSelected

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

Source from the content-addressed store, hash-verified

2339});
2340
2341export function isNextSelected(id: Key | undefined, state: TableState<unknown>) {
2342 if (id == null || !state) {
2343 return false;
2344 }
2345 let keyAfter = state.collection.getKeyAfter(id);
2346 return keyAfter != null && state.selectionManager.isSelected(keyAfter);
2347}
2348
2349export function isPrevSelected(id: Key | undefined, state: TableState<unknown>) {
2350 if (id == null || !state) {

Callers 1

TableView.tsxFile · 0.70

Calls 2

getKeyAfterMethod · 0.65
isSelectedMethod · 0.65

Tested by

no test coverage detected