File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 47
47
48
48
<div class =" grid grid-cols-3 w-full items-stretch gap-10" >
49
49
<div class =" flex justify-start" >
50
+ <!-- replace default select from Paginator below to be able to style properly -->
50
51
<button
51
52
aria-label =" Open menu to select number of items to display per page"
52
53
class =" btn variant-filled-primary w-20 !px-3 !py-1.5 justify-between"
58
59
<div class ="card w-20 shadow-xl py-2" data-popup ={` #${id }-pageSizeDropdown ` }>
59
60
<ListBox rounded =" rounded-none" >
60
61
{#each pageSizes as size }
61
- <ListBoxItem bind:group ={pageSizeDropdownValue } name ="medium" value ={size }
62
+ <ListBoxItem
63
+ bind:group ={pageSizeDropdownValue }
64
+ name ="medium" value ={size }
65
+ on:click ={() => { $pageSize = size ; updateTable (); }}
62
66
>{size }</ListBoxItem
63
67
>
64
68
{/each }
68
72
</div >
69
73
<div class =" flex justify-center" >
70
74
<Paginator
71
- on:page ={(page ) => (updateTable (), $pageIndex = page .detail )}
72
- on:amount ={(amount ) => (updateTable (), ($pageSize = amount .detail ))}
75
+ on:page ={(page ) => {$pageIndex = page .detail ; updateTable (); }}
73
76
settings ={paginationSettings }
74
77
select =" hidden"
75
78
active =" !variant-filled-secondary !text-on-secondary-token"
You can’t perform that action at this time.
0 commit comments