MCPcopy Index your code
hub / github.com/nodegui/react-nodegui / verifyRanges

Function verifyRanges

src/components/Table/RNTable.ts:54–61  ·  view source on GitHub ↗
({ row: rowCount, column: columnCount }: CellRange, { row, column }: Partial<CellRange>)

Source from the content-addressed store, hash-verified

52type CustomTableProps = Omit<TableProps, "cellRange">;
53
54function verifyRanges({ row: rowCount, column: columnCount }: CellRange, { row, column }: Partial<CellRange>) {
55 if (row && (row < 0 || row > rowCount - 1)) {
56 console.warn(`Row "${row}" is out of range "${rowCount - 1}"`);
57 }
58 if (column && (column < 0 || column > columnCount - 1)) {
59 console.warn(`Column "${column}" is out range "${columnCount - 1}"`);
60 }
61}
62
63/**
64 * @ignore

Callers 10

verticalHeaderItemsFunction · 0.85
cellWidgetsFunction · 0.85
currentCellFunction · 0.85
sortItemsFunction · 0.85
selectedColumnFunction · 0.85
columnWidthFunction · 0.85
rowHeightFunction · 0.85
hideColumnsFunction · 0.85
hideRowsFunction · 0.85
appendInitialChildMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected