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

Add pageSizeConstraint option to BaseListView #218

Closed
vjik opened this issue Sep 29, 2024 · 3 comments · Fixed by #219
Closed

Add pageSizeConstraint option to BaseListView #218

vjik opened this issue Sep 29, 2024 · 3 comments · Fixed by #219
Assignees

Comments

@vjik
Copy link
Member

vjik commented Sep 29, 2024

Available values:

  • true (deny to change page size, default)
  • false (allow any page size)
  • int (maximum page size value)
  • list<int> (list of available page size values)

Also need UI-element for change page size similar to pagination.

@samdark
Copy link
Member

samdark commented Oct 17, 2024

@vjik implemented the constraint check. Not sure about how UI should look like.

@vjik
Copy link
Member Author

vjik commented Oct 18, 2024

@vjik implemented the constraint check. Not sure about how UI should look like.

UI needs when constraint is array. I think, it should be dropdown element (<select>).

@samdark
Copy link
Member

samdark commented Oct 19, 2024

So about UI:

  • true — nothing should be displayed
  • false — positive int input
  • number - positive int input limited by the number provided
  • list - dropdown with pre-defined int values

@vjik vjik closed this as completed in #219 Nov 22, 2024
@vjik vjik closed this as completed in c11a1d2 Nov 22, 2024
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

Successfully merging a pull request may close this issue.

2 participants