@progress/kendo-react-grid
Version:
React Data Grid (Table) provides 100+ ready-to-use data grid features. KendoReact Grid package
31 lines (30 loc) • 1.12 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
*-------------------------------------------------------------------------------------------
*/
import { GRID_COL_INDEX_ATTRIBUTE as i } from "../../constants/index.mjs";
import { uGrid as r, classNames as s } from "@progress/kendo-react-common";
const o = (e) => {
let d = null;
const l = e.unstyled, t = l && l.uGrid ? l.uGrid : r, a = s(
t.td({ selected: e.isSelected, highlighted: e.isHighlighted, sorted: e.isSorted, alt: e.isAlt }),
e.className,
["k-drag-cell", `${e.rowReorderable ? "" : "k-disabled"}`]
);
return d = {
colSpan: e.colSpan,
style: e.style,
className: a,
role: "gridcell",
"aria-colindex": e.ariaColumnIndex,
"aria-selected": e.isSelected,
"aria-disabled": !e.rowReorderable,
[i]: e.columnIndex
}, { tdProps: d };
};
export {
o as getRowReorderCellTdProps
};