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

Method getTotalRowsHeight

src/BaseTable.js:184–191  ·  view source on GitHub ↗

* Get the total height of all rows, including expanded rows.

()

Source from the content-addressed store, hash-verified

182 * Get the total height of all rows, including expanded rows.
183 */
184 getTotalRowsHeight() {
185 const { rowHeight, estimatedRowHeight } = this.props;
186
187 if (estimatedRowHeight) {
188 return this.table ? this.table.getTotalRowsHeight() : this._data.length * estimatedRowHeight;
189 }
190 return this._data.length * rowHeight;
191 }
192
193 /**
194 * Get the total width of all columns.

Callers 2

BaseTable.jsFile · 0.80
ifFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected