UNPKG

@progress/kendo-react-grid

Version:

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

33 lines (32 loc) 1.27 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 client"; import { useUnstyled as c, uGrid as s, classNames as a } from "@progress/kendo-react-common"; import * as l from "react"; import { GridColumnMenuWrapper as m } from "../columnMenu/GridColumnMenuWrapper.mjs"; const u = (e) => { const n = c(), r = n && n.uGrid ? n.uGrid : s, t = e.onClick ? { onClick: e.onClick } : {}; return /* @__PURE__ */ l.createElement("span", { className: a(r.headerCellInner({})) }, /* @__PURE__ */ l.createElement( "span", { className: a( r.headerCellLink({ sortable: e.columnMenuWrapperProps.sortable }) ), ...t }, /* @__PURE__ */ l.createElement("span", { className: a(r.columnTitle({})) }, e.title || e.field || " "), e.children ), e.columnMenuWrapperProps.columnMenu && /* @__PURE__ */ l.createElement(m, { ...e.columnMenuWrapperProps })); }; export { u as GridHeaderCell };