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

Method getCopyable

handsontable/src/dataMap/dataSource.ts:384–392  ·  view source on GitHub ↗

* Returns single value from the data array (intended for clipboard copy to an external application). * * @param {number} row Visual row index. * @param {number} prop The column property. * @since 16.1.0 * @returns {string}

(row: number, prop: string | number)

Source from the content-addressed store, hash-verified

382 * @returns {string}
383 */
384 getCopyable(row: number, prop: string | number): unknown {
385 const visualColumn = this.propToCol(prop);
386
387 if (typeof visualColumn === 'number' && this.hot!.getCellMeta(row, visualColumn).copyable) {
388 return this.getAtCell(this.hot!.toPhysicalRow(row), visualColumn);
389 }
390
391 return '';
392 }
393
394 /**
395 * Count number of rows.

Callers

nothing calls this directly

Calls 4

getAtCellMethod · 0.95
toPhysicalRowMethod · 0.80
propToColMethod · 0.65
getCellMetaMethod · 0.65

Tested by

no test coverage detected