mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-14 12:06:24 +00:00
Add sorting options for the StockItem list
This commit is contained in:
parent
6192932322
commit
a450154bac
3 changed files with 26 additions and 0 deletions
|
|
@ -50,6 +50,15 @@ class _PaginatedPartCategoryListState extends PaginatedSearchState<PaginatedPart
|
|||
|
||||
_PaginatedPartCategoryListState(Map<String, String> filters) : super(filters);
|
||||
|
||||
@override
|
||||
String get prefix => "category_";
|
||||
|
||||
@override
|
||||
Map<String, String> get orderingOptions => {
|
||||
"name": L10().name,
|
||||
"level": L10().level,
|
||||
};
|
||||
|
||||
@override
|
||||
Future<InvenTreePageResponse?> requestPage(int limit, int offset, Map<String, String> params) async {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue