Hi William,
Thanks for contacting Syncfusion support.
You can render the custom tooltip to the Grid header by using the “headerCellInfo” event. Please refer to the below code example, documentation link and sample link for more information.
[App.vue]
<template>
<div id="app">
<ejs-grid ref="grid" :dataSource="data" :headerCellInfo="headerCellInfoEvent " height="315px">
<e-columns>
<e-column field="OrderID" headerText="Order ID" textAlign="Right" width="90"></e-column>
<e-column field="CustomerID" headerText="Customer ID" width="120"></e-column>
<e-column field="Freight" headerText="Freight" textAlign="Right" format="C2" width="90"></e-column>
<e-column field="ShipName" headerText="Ship Name" width="120"></e-column>
</e-columns>
</ejs-grid>
</div>
</template>
<script>
import Vue from "vue";
import { GridPlugin } from "@syncfusion/ej2-vue-grids";
import { Tooltip } from "@syncfusion/ej2-popups";
import { data } from "./datasource.js";
Vue.use(GridPlugin);
export default {
methods: {
headerCellInfoEvent: function(args) {
new Tooltip(
{
content: args.cell.column.headerText
},
args.node
);
}
}
};
</script>
|
Regards,
Pavithra S.