MCPcopy
hub / github.com/handsontable/handsontable / getCopyable

Method getCopyable

handsontable/src/dataMap/dataMap.ts:889–897  ·  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. * @returns {string}

(row: number, prop: string | number)

Source from the content-addressed store, hash-verified

887 * @returns {string}
888 */
889 getCopyable(row: number, prop: string | number) {
890 const colIndex = this.propToCol(prop);
891
892 if (typeof colIndex === 'number' && this.hot!.getCellMeta(row, colIndex).copyable) {
893 return this.get(row, prop);
894 }
895
896 return '';
897 }
898
899 /**
900 * Saves single value to the data array.

Callers 1

CoreFunction · 0.45

Calls 3

propToColMethod · 0.95
getMethod · 0.95
getCellMetaMethod · 0.65

Tested by

no test coverage detected