@revolist/revogrid
Version:
Virtual reactive data grid spreadsheet component - RevoGrid.
13 lines (12 loc) • 400 B
JavaScript
/*!
* Built by Revolist OU ❤️
*/
import { DATA_COL, DATA_ROW } from "../utils/consts";
export function getCell(cell) {
var _a, _b;
return {
x: parseInt((_a = cell.getAttribute(DATA_COL)) !== null && _a !== void 0 ? _a : '0', 10),
y: parseInt((_b = cell.getAttribute(DATA_ROW)) !== null && _b !== void 0 ? _b : '0', 10),
};
}
//# sourceMappingURL=cell.helpers.js.map