Repository navigation
A paginated list widget #71
Replies: 6 comments 3 replies
|
If it is generic enough and can be styled for any site, then it can be included, but I'd do a few things: |
|
Also, note that reblocks-ui uses Zurb Foundation for styling, while reblocks-ui2 allows to write RENDER methods which can depend on current site's theme (currently TailwindCSS is supported and somewhere Zurb Foundation too). Probably it is better to implement this pagination widget for reblocks-ui2. |
|
Good points! I'll have a look. Thanks.
El mié, 2 de abr de 2025, 11:29, Alexander Artemenko <
***@***.***> escribió:
… If it is generic enough and can be styled for any site, then it can be
included, but I'd do a few things:
- replace cl-who with reblocks/html:with-html
- think about different pagination strategies, because using page
numbers is not good for database query performace. In most cases it is
better to use keyset pagination (read more about it here
<https://use-the-index-luke.com/no-offset>, here
<https://use-the-index-luke.com/sql/partial-results/fetch-next-page>
and here
<https://ask.use-the-index-luke.com/questions/205/how-to-query-for-previous-page-with-keyset-pagination>
).
—
Reply to this email directly, view it on GitHub
<#71 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADKPDU5YJBL4XTWJXNRKRD2XPX5VAVCNFSM6AAAAAB2JK5QGCVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTENZQGE3TONQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
|
And one more, from my experience, lists with pagination often require addional controls, such as "Add" button and "Delete" buttons for rows. It would be nice to have hooks allowing to add such controls and to update list on these actions. |
|
Noted.
El mié, 2 de abr de 2025, 11:34, Alexander Artemenko <
***@***.***> escribió:
… And one more, from my experience, lists with pagination often require
addional controls, such as "Add" button and "Delete" buttons for rows. It
would be nice to have hooks allowing to add such controls and to update
list on these actions.
—
Reply to this email directly, view it on GitHub
<#71 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADKPDST6PNGMKZXQTW5P6T2XPYPPAVCNFSM6AAAAAB2JK5QGCVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTENZQGE4DKNA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
|
Hey guys do your lists allow sorting columns? (ajax-based, calling back the DB) That would be really really nice. |
Uh oh!
There was an error while loading. Please reload this page.
Hi.
I've implemented a paginated list widget here
Perhaps I could consider adding to reblocks-ui repository.
All reactions