MCPcopy Create free account
hub / github.com/handsontable/handsontable / modifyRowData

Method modifyRowData

handsontable/src/dataMap/dataSource.ts:69–77  ·  view source on GitHub ↗

* Run the `modifyRowData` hook and return either the modified or the source data for the provided row. * * @private * @param {number} rowIndex Row index. * @returns {Array|object} Source or modified row of data.

(rowIndex: number)

Source from the content-addressed store, hash-verified

67 * @returns {Array|object} Source or modified row of data.
68 */
69 modifyRowData(rowIndex: number) {
70 let modifyRowData;
71
72 if (this.hot!.hasHook('modifyRowData')) {
73 modifyRowData = this.hot!.runHooks('modifyRowData', rowIndex);
74 }
75
76 return (modifyRowData !== undefined && !Number.isInteger(modifyRowData)) ? modifyRowData : this.data![rowIndex];
77 }
78
79 /**
80 * Get all data.

Callers 3

getAtRowMethod · 0.95
setAtCellMethod · 0.95
getAtCellMethod · 0.95

Calls 2

hasHookMethod · 0.80
runHooksMethod · 0.65

Tested by

no test coverage detected