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

Model class name and items per page #192

Open
itoop2019 opened this issue Jul 16, 2024 · 2 comments
Open

Model class name and items per page #192

itoop2019 opened this issue Jul 16, 2024 · 2 comments
Labels
enhancement New feature or request investigate

Comments

@itoop2019
Copy link

itoop2019 commented Jul 16, 2024

Hi!
There are two questions.

  1. Is there a setting for the number of lines on the page (items per page)?

  2. The name of the model class (table in the database) becomes part of the address. Maybe the class has an alias so that the address can be substituted with an alias rather than the class name?

image

image

@antifree
Copy link
Member

Hi @itoop2019!

  1. Yes, you can set up grid options:
new EasyDataViewDispatcher({
    grid: {
       paging: {
        enabled: true // enable paging
        pageSize:  100 // default page size
        allowPageSizeChange: true, // add selector to change page size
        pageSizeItems: [20, 50, 100, 200] // page size options
    }
    }
}).run()
  1. Unfortunately, there is no such possibility yet, but we can consider adding it.

@itoop2019
Copy link
Author

Many thanks, it works!
I will be very grateful if you add an alias.

@antifree antifree added enhancement New feature or request investigate labels Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request investigate
Projects
None yet
Development

No branches or pull requests

2 participants