@progress/kendo-react-grid
Version:
React Data Grid (Table) provides 100+ ready-to-use data grid features. KendoReact Grid package
48 lines (47 loc) • 1.57 kB
JavaScript
/**
* @license
*-------------------------------------------------------------------------------------------
* Copyright © 2026 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the package root for more information
*-------------------------------------------------------------------------------------------
*/
import * as c from "react";
import { GRID_COL_INDEX_ATTRIBUTE as s } from "../../constants/index.mjs";
import { uGrid as o, classNames as r } from "@progress/kendo-react-common";
import { GridPinDropdownButton as m } from "./GridPinDropdownButton.mjs";
const I = (e) => {
var i;
let t = null, l = null;
if (e.rowType === "groupFooter")
t = {
className: e.className
};
else if (e.rowType !== "groupHeader") {
const a = e.unstyled, n = (i = a == null ? void 0 : a.uGrid) != null ? i : o, d = r(
n.td({
selected: e.isSelected,
highlighted: e.isHighlighted,
sorted: e.isSorted,
alt: e.isAlt
}),
e.className
);
t = {
colSpan: e.colSpan,
style: e.style,
className: d,
role: "gridcell",
"aria-colindex": e.ariaColumnIndex,
"aria-selected": e.isSelected,
[s]: e.columnIndex
}, l = /* @__PURE__ */ c.createElement(m, { dataItem: e.dataItem });
}
return { tdProps: t, content: l };
}, T = (e) => {
var t, l;
return (l = (t = e.cells) == null ? void 0 : t.pin) == null ? void 0 : l[e.rowType || "data"];
};
export {
T as getCustomCell,
I as getPinCellTdProps
};