* 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)
| 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. |