MCPcopy Create free account
hub / github.com/Autodesk/react-base-table / resetAfterRowIndex

Method resetAfterRowIndex

src/BaseTable.js:219–225  ·  view source on GitHub ↗

* Reset cached offsets for positioning after a specific rowIndex, should be used only in dynamic mode(estimatedRowHeight is provided) * * @param {number} rowIndex * @param {boolean} shouldForceUpdate

(rowIndex = 0, shouldForceUpdate = true)

Source from the content-addressed store, hash-verified

217 * @param {boolean} shouldForceUpdate
218 */
219 resetAfterRowIndex(rowIndex = 0, shouldForceUpdate = true) {
220 if (!this.props.estimatedRowHeight) return;
221
222 this.table && this.table.resetAfterRowIndex(rowIndex, shouldForceUpdate);
223 this.leftTable && this.leftTable.resetAfterRowIndex(rowIndex, shouldForceUpdate);
224 this.rightTable && this.rightTable.resetAfterRowIndex(rowIndex, shouldForceUpdate);
225 }
226
227 /**
228 * Reset row height cache, useful if `data` changed entirely, should be used only in dynamic mode(estimatedRowHeight is provided)

Callers 3

constructorMethod · 0.95
resetAfterRowIndexFunction · 0.80
BaseTable.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected