MCPcopy
hub / github.com/handsontable/handsontable / clear

Method clear

handsontable/src/dataMap/dataMap.ts:1020–1026  ·  view source on GitHub ↗

* Clears the data array.

()

Source from the content-addressed store, hash-verified

1018 * Clears the data array.
1019 */
1020 clear() {
1021 for (let r = 0; r < this.hot!.countSourceRows(); r++) {
1022 for (let c = 0; c < this.hot!.countCols(); c++) {
1023 this.set(r, this.colToProp(c), '');
1024 }
1025 }
1026 }
1027
1028 /**
1029 * Get data length.

Callers 15

HotTableContextProviderFunction · 0.45
hotTableInner.tsxFile · 0.45
flushFunction · 0.45
handleAfterChangeFunction · 0.45
handleAfterChangeFunction · 0.45
AppComponentClass · 0.45
afterChangeFunction · 0.45
afterChangeFunction · 0.45
handleSubmitFunction · 0.45
handleSubmitFunction · 0.45
onSubmitMethod · 0.45
clearHighlightsFunction · 0.45

Calls 4

setMethod · 0.95
colToPropMethod · 0.95
countSourceRowsMethod · 0.80
countColsMethod · 0.65

Tested by

no test coverage detected