forked from aspnet/JavaScriptServices
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcolumnMeta.jsx
More file actions
60 lines (58 loc) · 1.02 KB
/
Copy pathcolumnMeta.jsx
File metadata and controls
60 lines (58 loc) · 1.02 KB
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
57
58
59
60
import React from 'react';
import { Link } from 'react-router';
class RowActionsComponent extends React.Component {
render() {
return <Link to={'/edit/' + this.props.rowData.id}>Edit</Link>;
}
}
export const columnMeta = [
{
"columnName": "id",
"order": 1,
"locked": false,
"visible": true
},
{
"columnName": "name",
"order": 2,
"locked": false,
"visible": true
},
{
"columnName": "city",
"order": 3,
"locked": false,
"visible": true
},
{
"columnName": "state",
"order": 4,
"locked": false,
"visible": true
},
{
"columnName": "country",
"order": 5,
"locked": false,
"visible": true
},
{
"columnName": "company",
"order": 6,
"locked": false,
"visible": true
},
{
"columnName": "favoriteNumber",
"order": 7,
"locked": false,
"visible": true
},
{
"columnName": "actions",
"order": 8,
"locked": true,
"visible": true,
"customComponent": RowActionsComponent
}
];