@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.35 kB
JavaScript
/**
* @license
*-------------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the package root for more information
*-------------------------------------------------------------------------------------------
*/
;Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react"),s=require("../constants/index.js"),i=require("../components/icons/reorder-row-svg.js"),R=require("./client/GridRowReorderContainer.js"),a=require("@progress/kendo-react-common"),u=e=>{const{...d}=e,r=e.unstyled,o=r&&r.uGrid?r.uGrid:a.uGrid,c=a.classNames(o.td({selected:e.isSelected,sorted:e.isSorted,alt:e.isAlt}),e.className),l={colSpan:e.colSpan,style:e.style,className:c,role:"gridcell","aria-colindex":e.ariaColumnIndex,"aria-selected":e.isSelected,[s.GRID_COL_INDEX_ATTRIBUTE]:e.columnIndex},n=a.classNames(l==null?void 0:l.className,["k-drag-cell",`${e.rowReorderable?"":"k-disabled"}`]);return t.createElement(R.GridRowReorderCellContainer,{rowReorderable:e.rowReorderable,cellProps:d},t.createElement("td",{...l,style:{touchAction:"none"},"aria-disabled":!e.rowReorderable,className:n},t.createElement(i.ReorderRowIcon,null)))};exports.GridRowReorderCell=u;