<template>
<div id="app">
<ejs-tooltip
id="tooltip"
position="BottomCenter"
target="th.tooltipcolumn"
content="Cancer Relevant" // here you can change the content as you want
>
<ejs-grid ref="grid" :dataSource="data" height="315">
<e-columns>
<e-column
type="checkbox"
:allowFiltering="false"
:allowSorting="false"
:customAttributes="{class: 'tooltipcolumn'}"
width="60"
></e-column>
<e-column field="OrderID" headerText="Order ID " textAlign="Right" width="140"></e-column>
<e-column
field="CustomerID"
headerText="Customer ID"
:disableHtmlEncode="false"
width="120"
></e-column>
<e-column field="Freight" headerText="Freight" textAlign="Right" format="C2" width="80"></e-column>
<e-column
field="OrderDate"
headerText="Order Date"
textAlign="Right"
format="yMd"
type="date"
width="120"
></e-column>
</e-columns>
</ejs-grid>
</ejs-tooltip>
</div>
</template>
<script>
import Vue from "vue";
import { GridPlugin } from "@syncfusion/ej2-vue-grids";
import { data } from "./datasource.js";
import { TooltipPlugin } from "@syncfusion/ej2-vue-popups";
Vue.use(TooltipPlugin);
Vue.use(GridPlugin);
export default {
data() {
return {
data: data
};
}
};
</script>
<style>
@import "https://cdn.syncfusion.com/ej2/material.css";
</style>
|