-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
56 lines (54 loc) · 1.27 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import Vue from "vue";
import { DxDataGrid } from "devextreme-vue";
import { sales, selectedKeys } from "./data.js";
new Vue({
el: "#app",
components: { DxDataGrid },
data() {
return {
sales,
selectedKeys,
grouping: { autoExpandAll: true },
groupPanel: { visible: true },
paging: { pageSize: 10 },
selection: { mode: "multiple" },
filterRow: { visible: true },
columns: [
{
dataField: "orderId",
caption: "Order ID",
allowSorting: false,
allowFiltering: false,
allowGrouping: false,
allowReordering: false,
width: 100
},
{
dataField: "city"
},
{
dataField: "country",
sortOrder: "asc"
},
{
dataField: "region",
groupIndex: 0
},
{
dataField: "date",
dataType: "date",
selectedFilterOperation: ">=",
filterValue: "2013/04/01",
width: 150
},
{
dataField: "amount",
format: "currency",
selectedFilterOperation: ">=",
filterValue: 1000,
width: 100
}
]
};
}
});