@progress/kendo-react-spreadsheet
Version:
KendoReact Spreadsheet package
9 lines (8 loc) • 1.44 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
*-------------------------------------------------------------------------------------------
*/
;Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react"),l=require("@progress/kendo-react-buttons"),d=require("@progress/kendo-svg-icons"),g=require("@progress/kendo-react-intl"),r=require("../messages.js");function f(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const o=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(n,e,o.get?o:{enumerable:!0,get:()=>t[e]})}}return n.default=t,Object.freeze(n)}const c=f(u),i=t=>{const{value:n,spreadsheetRef:e}=t,o=c.useCallback(()=>{if(e.current){const s=e.current.activeSheet();if(s){const a={command:"GridLinesChangeCommand",options:{property:"gridLines",value:!s.showGridLines()}};e.current.executeCommand(a)}}},[]);return c.createElement(l.Button,{type:"button",togglable:!0,icon:"borders-none",svgIcon:d.bordersNoneIcon,fillMode:"flat",title:g.useLocalization().toLanguageString(r.keys.gridLines,r.messages[r.keys.gridLines]),onClick:o,selected:n})};i.displayName="GridLines";exports.GridLines=i;