Skip to content

Feature: Add the choices for sortingΒ #10

@ycuk

Description

@ycuk

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;

    ...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions