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

Feature: Add the choices for sorting #10

Open
ycuk opened this issue Oct 12, 2023 · 0 comments
Open

Feature: Add the choices for sorting #10

ycuk opened this issue Oct 12, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@ycuk
Copy link

ycuk commented Oct 12, 2023

Sometimes table data may be a small and in that case we dont want to make request to server again just for sorting for a few rows.
So I think it would be good option to select sorting side when use TableDataProvider.

Something like this:

pub enum SortingSide {
    Client, // local sorting
    Server, // server sorting
}

#[async_trait(?Send)]
impl TableDataProvider<T> for MyDataProvider {
    type ColumnName = MyColumnName;
    type SortingSide = SortingSide::Client;

    ...
}
@maccesch maccesch added the enhancement New feature or request label Feb 8, 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
Projects
None yet
Development

No branches or pull requests

2 participants