-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathexample.vue
More file actions
44 lines (41 loc) · 994 Bytes
/
example.vue
File metadata and controls
44 lines (41 loc) · 994 Bytes
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
<template>
<div>
<Datatable :has-filter="true" title="User Group Table" :columns="columns" :query-name="TABLE_USER_GROUPS">
<template #cell(username)="data">User name is {{ data.data.data }} </template>
<template #cell(slug)="data">Group slug is {{ data.data.data }} </template>
</Datatable>
</div>
</template>
<script>
import { TABLE_USER_GROUPS } from './graphql/queries/tables';
export default {
data() {
return {
TABLE_USER_GROUPS,
columns: [
{
key: 'id',
slotId: 'id',
title: 'ID',
searchable: true,
sortable: true,
},
{
key: 'group.slug',
slotId: 'slug',
title: 'Group',
searchable: true,
sortable: true,
},
{
key: 'user.name',
slotId: 'user.name',
title: 'User Detail',
searchable: true,
sortable: false,
},
],
};
},
};
</script>