You've already forked Nitro_Render_V3
mirror of
https://github.com/duckietm/Nitro_Render_V3.git
synced 2026-06-19 15:06:20 +00:00
feat(furni-editor): add sortField/sortDir to search composer
Append optional sort field + direction to FurniEditorSearchComposer so the server can order the full result set (not just the visible page). Defaults id/asc keep existing callers working.
This commit is contained in:
+2
-2
@@ -4,9 +4,9 @@ export class FurniEditorSearchComposer implements IMessageComposer<ConstructorPa
|
|||||||
{
|
{
|
||||||
private _data: ConstructorParameters<typeof FurniEditorSearchComposer>;
|
private _data: ConstructorParameters<typeof FurniEditorSearchComposer>;
|
||||||
|
|
||||||
constructor(query: string, type: string, page: number)
|
constructor(query: string, type: string, page: number, sortField: string = 'id', sortDir: string = 'asc')
|
||||||
{
|
{
|
||||||
this._data = [ query, type, page ];
|
this._data = [ query, type, page, sortField, sortDir ];
|
||||||
}
|
}
|
||||||
|
|
||||||
dispose(): void
|
dispose(): void
|
||||||
|
|||||||
Reference in New Issue
Block a user