Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
144654 | May 16,2019 01:39 AM UTC | May 16,2019 04:40 AM UTC | Vue | 1 |
![]() |
Tags: Data Grid |
<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>
|
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.