1
0
Fork 0
mirror of synced 2024-07-02 04:50:44 +12:00

adds pagination option

This commit is contained in:
kevmodrome 2020-10-13 09:51:01 +02:00
parent 4ad2fb47d5
commit 6ac9c59bbb
No known key found for this signature in database
GPG key ID: E8F9CD141E63BF38
3 changed files with 11 additions and 1 deletions

View file

@ -352,6 +352,12 @@ export default {
defaultValue: "500",
control: Input
},
{
label: "Pagination",
key: "pagination",
valueKey: "checked",
control: Checkbox,
},
],
},
children: [],

View file

@ -238,7 +238,8 @@
"material"
]
},
"height": "number"
"height": "number",
"pagination": "bool"
}
},
"dataform": {

View file

@ -19,6 +19,7 @@
export let editable
export let theme = 'alpine'
export let height;
export let pagination
let dataLoaded = false
let data
@ -33,6 +34,8 @@
},
rowSelection: editable ? "multiple" : false,
suppressRowClickSelection: !editable,
paginationAutoPageSize: true,
pagination
}
onMount(async () => {