MCPcopy
hub / github.com/bvaughn/react-virtualized / cellRenderers

Method cellRenderers

source/Collection/Collection.js:167–186  ·  view source on GitHub ↗
({height, isScrolling, width, x, y})

Source from the content-addressed store, hash-verified

165 }
166
167 cellRenderers({height, isScrolling, width, x, y}) {
168 const {cellGroupRenderer, cellRenderer} = this.props;
169
170 // Store for later calls to getLastRenderedIndices()
171 this._lastRenderedCellIndices = this._sectionManager.getCellIndices({
172 height,
173 width,
174 x,
175 y,
176 });
177
178 return cellGroupRenderer({
179 cellCache: this._cellCache,
180 cellRenderer,
181 cellSizeAndPositionGetter: ({index}) =>
182 this._sectionManager.getCellMetadata({index}),
183 indices: this._lastRenderedCellIndices,
184 isScrolling,
185 });
186 }
187
188 _isScrollingChange(isScrolling) {
189 if (!isScrolling) {

Callers 1

CollectionView.jsFile · 0.80

Calls 2

getCellMetadataMethod · 0.80
getCellIndicesMethod · 0.45

Tested by

no test coverage detected