Skip to content

新建 partition component - #1363

Open
olivierauverlot wants to merge 4 commits into
sqlpage:mainfrom
olivierauverlot:partition
Open

新建 partition component#1363
olivierauverlot wants to merge 4 commits into
sqlpage:mainfrom
olivierauverlot:partition

Conversation

@olivierauverlot

Copy link
Copy Markdown
Contributor

Provides a mechanism to define custom pagination rules.

It allows splitting records on the generated page based on a user-specified partitioning criterion, ensuring controlled data distribution across pages.

@olivierauverlot

Copy link
Copy Markdown
Contributor Author
partition

@olivierauverlot

Copy link
Copy Markdown
Contributor Author
image

@lovasoa

lovasoa commented Aug 26, 2026

Copy link
Copy Markdown
Collaborator

The compact control does not reveal the active facet while it is closed: the button says Classes, while the active Constitution value is only visible after opening the menu.

Mobile screenshot of the compact facet control; Classes is the closed label and Constitution is active only in the opened menu

@lovasoa

lovasoa commented Aug 26, 2026

Copy link
Copy Markdown
Collaborator

Added optional dropdown_title for compact facets. Item rows are streamed after the dropdown button, so the template cannot derive the active item title before rendering that button. The query can now supply the selected title explicitly; it defaults to description when omitted.

…es. dropdown_title shown on the compact-mode dropdown button when no facet is selected. selected_facet shown on the compact-mode dropdown button when facet has been selected.
@olivierauverlot

Copy link
Copy Markdown
Contributor Author

My latest commit is a proposed improvement. The description property can now be used in both modes (normal and compact). I kept dropdown_title, but it is now used to display text on the selector when no facet has been selected by the user. I also added the selected_facet property to indicate the selected facet. This seems more consistent to me and allows for greater flexibility when using the component.

image image

It’s just a detail, but I’m not a big fan of the name facet for this component. I prefer partition, which seems more appropriate to me.

注册 for free to join this conversation on GitHub. Already have an account? 登录 to comment

标签

None yet

项目

None yet

Development

Successfully merging this pull request may close these issues.

2 participants