UNPKG

@progress/kendo-vue-grid

Version:
9 lines (8 loc) 1.26 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 strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("@progress/kendo-vue-common"),s=e.defineComponent({props:{field:String,title:String,sortable:[Boolean,Object],render:[Object,Function,String],selectionValue:[Boolean,String,Number],onHeadercellclick:Function},computed:{linkClass(){return{"k-link":!0,"!k-cursor-default":!this.sortable}}},methods:{clickHandler(t){this.sortable&&this.$emit("headercellclick",t)}},render(){const t=l.getDefaultSlots(this),i=this.$props.render,r=this.$props.title||this.$props.field||" ",n=l.getTemplate.call(this,{h:e.h,template:i,defaultRendering:r,additionalProps:this.$props,additionalListeners:{click:this.clickHandler}});return e.createVNode("span",{class:this.linkClass,onClick:this.clickHandler},[e.createVNode("span",{class:"k-column-title"},[n]),t])}});exports.GridHeaderCell=s;