MCPcopy Index your code
hub / github.com/bvaughn/react-virtualized / addCellIndex

Method addCellIndex

source/Collection/Section.js:22–27  ·  view source on GitHub ↗

Add a cell to this section.

({index}: Index)

Source from the content-addressed store, hash-verified

20
21 /** Add a cell to this section. */
22 addCellIndex({index}: Index) {
23 if (!this._indexMap[index]) {
24 this._indexMap[index] = true;
25 this._indices.push(index);
26 }
27 }
28
29 /** Get all cell indices that have been added to this section. */
30 getCellIndices(): Array<number> {

Callers 2

registerCellMethod · 0.80
Section.jest.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected