Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
149570 | Dec 1,2019 12:21 AM UTC | Dec 3,2019 01:14 PM UTC | Vue | 3 |
![]() |
Tags: Data Grid |
<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>
|
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.