UNPKG

@progress/kendo-react-grid

Version:

React Data Grid (Table) provides 100+ ready-to-use data grid features. KendoReact Grid package

9 lines (8 loc) 1.04 kB
/** * @license *------------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the package root for more information *------------------------------------------------------------------------------------------- */ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../../constants/index.js"),s=require("@progress/kendo-react-common"),i=e=>{let t=null;const l=e.unstyled,d=l&&l.uGrid?l.uGrid:s.uGrid,c=s.classNames(d.editTd({selected:e.isSelected}),e.className);return t={colSpan:e.colSpan,style:e.style,className:c,"aria-colindex":e.ariaColumnIndex,"aria-selected":e.isSelected,[n.GRID_COL_INDEX_ATTRIBUTE]:e.columnIndex,role:"gridcell"},{tdProps:t}},a=e=>{var t,l,d;return((l=(t=e.cells)==null?void 0:t.edit)==null?void 0:l[e.editor||"text"])||((d=e.cells)==null?void 0:d.data)};exports.getCustomCell=a;exports.getEditCellTdProps=i;