|
<template>
<div id="app">
<ejs-grid
ref="grid"
id="Grid"
:dataSource="data"
. . .
<e-column field="OrderDate" headerText="Order Date" type="date" format="yMd" width="150"></e-column>
</e-columns>
</ejs-grid>
</div>
</template>
<script>
import Vue from "vue";
import {
GridPlugin,
Page,
Toolbar,
ExcelExport
} from "@syncfusion/ej2-vue-grids";
import { gridData } from "./data";
Vue.use(GridPlugin);
export default {
data() {
return {
data: [
{
OrderID: 10248,
CustomerID: "VINET",
OrderDate: new Date(8364186e5),
ShipCountry: "France",
Freight: 32.38
},
{
OrderID: 10249,
CustomerID: "TOMSP",
OrderDate: new Date(836505e6),
ShipCountry: "Germany",
Freight: 11.61
},
{
OrderID: 10250,
CustomerID: "HANAR",
OrderDate: null,
ShipCountry: "Brazil",
Freight: 65.83
},
{
OrderID: 10251,
CustomerID: "VICTE",
OrderDate: undefined,
ShipCountry: "France",
Freight: 41.34
},
{
OrderID: 10252,
CustomerID: "SUPRD",
OrderDate: "",
ShipCountry: "Belgium",
Freight: 51.3
}
],
. . . |