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 Support for String-Based "All" Option in availableRowsPerPage #336

Open
soufianebenyaala opened this issue Dec 24, 2024 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@soufianebenyaala
Copy link

Description:

Currently, the availableRowsPerPage property in DataTable2 only supports List. It would be beneficial to extend this to support string-based options, such as including an "All" option, allowing users to easily view all rows in the table.

Proposed Feature:

Allow availableRowsPerPage to accept List or List values or make it Map<String, int> _availableRowsPerPageMap = {
'2': 2,
'5': 5,
'10': 10,
'30': 30,
'100': 100,
'All': 65546, // "All" corresponds to all rows
}; .
Provide a built-in "All" option as a standard feature to display all rows.
Map string options to integer values internally, e.g., "All" could correspond to -1 or the total row count.

Benefits:

Enhances user experience by making row selection more intuitive.
Eliminates the need for custom implementations in each project.
Keeps the library flexible and user-friendly for developers who need more options.

@maxim-saplin maxim-saplin added the enhancement New feature or request label Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants