@progress/kendo-react-grid
Version:
React Data Grid (Table) provides 100+ ready-to-use data grid features. KendoReact Grid package
10 lines (9 loc) • 1.78 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
*-------------------------------------------------------------------------------------------
*/
"use client";
;Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react"),c=require("@progress/kendo-react-common"),u=require("../utils/GridContext.js");function f(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(o,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}return o.default=e,Object.freeze(o)}const t=f(i),s=e=>{var l;const o=t.useRef(null),r=t.useRef(null),a=t.useContext(u.GridContext);return t.useImperativeHandle(a.footerRef,()=>({setScrollLeft:n=>{o.current&&(o.current.scrollLeft=n)},setWidth:n=>{r.current&&(r.current.style.width=n?n+"px":"")}})),e.staticHeaders?t.createElement("div",{className:"k-grid-footer",role:"presentation"},t.createElement("div",{ref:o,className:"k-grid-footer-wrap",role:"presentation"},t.createElement("table",{ref:r,className:c.classNames("k-table k-grid-footer-table",{[`k-table-${((l=c.kendoThemeMaps.sizeMap)==null?void 0:l[e.size])||e.size}`]:e.size},e.className),role:"presentation"},t.createElement("colgroup",{ref:n=>{a.columnResizeRef.current.colGroupFooter=n},role:"presentation"},e.cols),t.createElement("tfoot",{className:"k-table-tfoot",role:"presentation"},e.row)))):t.createElement("tfoot",{className:"k-table-tfoot"},e.row)};s.displayName="KendoReactFooter";exports.Footer=s;