@mskcc/carbon-react
Version:
Carbon react components for the MSKCC DSM
21 lines (16 loc) • 515 B
JavaScript
/**
* MSKCC 2021, 2024
*/
;
Object.defineProperty(exports, '__esModule', { value: true });
/**
* Generic helper used to consolidate all call sites for getting a cell id into
* one method. The strategy currently is that a "cellId" is just the combination
* of the row id and the header key used to access this field in a row.
*
* @param {string} rowId
* @param {string} header
* @returns {string}
*/
const getCellId = (rowId, header) => `${rowId}:${header}`;
exports.getCellId = getCellId;