Implementing filter and sort in back
This commit is contained in:
@@ -111,7 +111,7 @@ export class ListComponent implements OnInit {
|
||||
private _search() {
|
||||
this._loading$.next(true);
|
||||
let sortBy = new SortBy(this.sortColumn, this.sortDirection)
|
||||
let filters = this.searchTerm ? [new Filters('fulltext', 'eq', this.searchTerm)] : [];
|
||||
let filters = this.searchTerm ? [new Filters('label', 'ilike', this.searchTerm)] : [];
|
||||
for (let f in this.searchFilters) {
|
||||
if (Array.isArray(this.searchFilters[f])) {
|
||||
filters.push(new Filters(f, 'in', this.searchFilters[f]))
|
||||
|
||||
@@ -142,7 +142,7 @@ export class ForeignkeyTypeComponent extends FieldType<FieldTypeConfig> implemen
|
||||
1,
|
||||
10,
|
||||
[],
|
||||
[new Filters('fulltext', 'eq', term)]
|
||||
[new Filters('label', 'ilike', term)]
|
||||
).pipe(
|
||||
map((result: any) => result["items"]),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user