Skip to content

Sortable datatable columns using th-sortable #25

@Matthbo

Description

@Matthbo

Currently there is no way to sort the datatable in any way, for non server retrieval it could be sorted manually but it's hardcoded when data is prepared and sent server side.

For client side data:
Use th-sortable headers which will sort the data in the datasource.

For server side data:
A sort param has to be given to the server since pagination is also handled serverside, the current datatable implementation is only used to having sort information be send as a queryparam of the data request, this is means the server will handle sorting the data but not per column.

This means serverside and clientside handling of data will have a significant difference specifically to how data is sortable.
Seems acceptable for now, but might look weird so needs to be documented well (within code)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions