UNPKG

@progress/kendo-vue-data-tools

Version:
9 lines (8 loc) 1.14 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 n=require("vue"),o=require("@progress/kendo-vue-common"),s=n.defineComponent({props:{title:String,iconClass:String,icon:String,svgIcon:Object,selected:Boolean,onMenuitemclick:Function},emits:{click:null},methods:{onClick(e){this.$emit("click",e),this.$emit("menuitemclick",e)},onKeyDown(e){e.keyCode===o.Keys.enter&&this.$emit("menuitemclick",e)}},render(){const{title:e,iconClass:t,selected:l,icon:i,svgIcon:c}=this.$props;return n.createVNode("div",{tabindex:0,onKeydown:this.onKeyDown,onClick:this.onClick,class:`k-columnmenu-item ${l?"k-selected":""}`},[t&&n.createVNode(o.Icon,{class:t},null),(i||c)&&n.createVNode(o.Icon,{name:i,icon:c},null),e])}});exports.ColumnMenuItem=s;