Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page-size and page-options not working #99

Open
giuliaSan opened this issue Nov 8, 2023 · 1 comment
Open

Page-size and page-options not working #99

giuliaSan opened this issue Nov 8, 2023 · 1 comment

Comments

@giuliaSan
Copy link

I have a table that looks like this
<table-lite :is-loading="table.isLoading" :is-slot-mode="true" :columns="table.columns" :rows="table.rows" :total="table.totalRecordCount" :sortable="table.sortable" :page-size="20" :page-options="[ { value: 20, text: 20 }, { value: 50, text: 50 }, { value: 100, text: 100 }, ]" @do-search="doSearch" @is-finished="tableLoadingFinish" >

When I click on the pageOptions values, the value is not taken by page-size and I don't have a way to retrieve the value (20,50,100) to use it eventually in calls I need to do to Backend.

@linmasahiro
Copy link
Owner

linmasahiro commented Nov 10, 2023

Hi, @giuliaSan
If you used page-options prop, not need page-size props, remove it.
I crated an example hope helpful you
https://codesandbox.io/s/vue3-table-lite-forked-2js7tz?file=/src/App.vue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants