adds pagination option
This commit is contained in:
parent
5963314b6c
commit
010a59d8cb
|
@ -352,6 +352,12 @@ export default {
|
||||||
defaultValue: "500",
|
defaultValue: "500",
|
||||||
control: Input
|
control: Input
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: "Pagination",
|
||||||
|
key: "pagination",
|
||||||
|
valueKey: "checked",
|
||||||
|
control: Checkbox,
|
||||||
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
children: [],
|
children: [],
|
||||||
|
|
|
@ -238,7 +238,8 @@
|
||||||
"material"
|
"material"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"height": "number"
|
"height": "number",
|
||||||
|
"pagination": "bool"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"dataform": {
|
"dataform": {
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
export let editable
|
export let editable
|
||||||
export let theme = 'alpine'
|
export let theme = 'alpine'
|
||||||
export let height;
|
export let height;
|
||||||
|
export let pagination
|
||||||
|
|
||||||
let dataLoaded = false
|
let dataLoaded = false
|
||||||
let data
|
let data
|
||||||
|
@ -33,6 +34,8 @@
|
||||||
},
|
},
|
||||||
rowSelection: editable ? "multiple" : false,
|
rowSelection: editable ? "multiple" : false,
|
||||||
suppressRowClickSelection: !editable,
|
suppressRowClickSelection: !editable,
|
||||||
|
paginationAutoPageSize: true,
|
||||||
|
pagination
|
||||||
}
|
}
|
||||||
|
|
||||||
onMount(async () => {
|
onMount(async () => {
|
||||||
|
|
Loading…
Reference in New Issue