# API for Vue.js
# Available Vue Components
Please refer Available Vue Components
# Template
<div class="demo-grid middle">
<c-grid
:data="records"
:frozen-col-count="1">
<!-- define checkbox -->
<c-grid-check-column
field="check"
width="50" />
<c-grid-column
field="personid"
width= "85"
>
ID
</c-grid-column>
<!-- multiple header -->
<c-grid-column-group
caption="Name">
<c-grid-input-column
field="fname"
width="20%"
min-width="150"
>
First Name
</c-grid-input-column>
<c-grid-input-column
field="lname"
width= "20%"
min-width="150"
>
Last Name
</c-grid-input-column>
</c-grid-column-group>
<!-- button -->
<c-grid-button-column
caption="SHOW REC"
width="120"
@click="onClickRecord"
/>
</c-grid>
</div>
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
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
export default {
data() {
return {
records,
};
},
methods: {
onClickRecord(rec) {
alert(JSON.stringify(rec));
},
},
};
1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12