Skip to content

Commit 56b3516

Browse files
committed
update useLazyDataTable implementation example
1 parent d234737 commit 56b3516

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

resources/js/Pages/Admin/Users/Index.vue

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,10 @@ const {
4545
filter,
4646
sort,
4747
hardReset,
48-
} = useLazyDataTable(
49-
{
50-
name: { value: null, matchMode: FilterMatchMode.CONTAINS },
51-
email: { value: null, matchMode: FilterMatchMode.CONTAINS },
52-
},
53-
['users'],
54-
props.users.per_page
55-
);
48+
} = useLazyDataTable('users', {
49+
name: { value: null, matchMode: FilterMatchMode.CONTAINS },
50+
email: { value: null, matchMode: FilterMatchMode.CONTAINS },
51+
}, props.users.per_page);
5652
</script>
5753

5854
<template>

0 commit comments

Comments
 (0)