@progress/kendo-react-grid
Version:
React Data Grid (Table) provides 100+ ready-to-use data grid features. KendoReact Grid package
28 lines (27 loc) • 1.23 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 * as r from "react";
import { getClientCellProps as p, isClientReference as u } from "../../utils/index.mjs";
import { GridCellServerContainer as c } from "./GridCellServerContainer.mjs";
import { getCellTdProps as a, getCustomCell as f } from "./utils.mjs";
const E = (i) => {
var s;
const { cellProps: t } = i, { tdProps: e, content: o } = a(t);
if (((s = t._rowSpan) == null ? void 0 : s.count) === null)
return null;
const l = p(t), n = f(t);
if (n) {
const C = u(n);
return /* @__PURE__ */ r.createElement(c, { cellProps: l, tdProps: e, isCustom: !0, isClient: C }, /* @__PURE__ */ r.createElement(n, { ...l, tdProps: e }, o));
}
const m = e ? /* @__PURE__ */ r.createElement("td", { ...e }, o) : null;
return /* @__PURE__ */ r.createElement(c, { cellProps: l, tdProps: e }, m);
};
export {
E as GridCellServer
};