lists/src/filter2/current_filters.ts
Represents all currently active filter predicates. Only filter predicates that are serialized into the search field are maintained here, the list of currently active filters will only be updated once after a refresh has been handled.
Properties |
Methods |
Accessors |
constructor(applyFn: (filters: FilteredColumn[]) => void)
|
||||||
Parameters :
|
all |
all:
|
Type : FilteredColumn[]
|
Default value : []
|
All currently active column filters. |
applyPredicates | |||||||||
applyPredicates(column: ColumnFilter, predicates: FilterPredicate[])
|
|||||||||
Modifies the current filter predicates such that any previous predicates for the column are cleared, and the newly provided ones are added. Doing so causes the list to refresh.
Parameters :
Returns :
void
|
clear |
clear()
|
Clears all filters and refreshes the list.
Returns :
void
|
clearColumn | ||||||
clearColumn(column: ColumnFilter)
|
||||||
Clears all filter predicates for a given column, causing the list to refresh.
Parameters :
Returns :
void
|
forColumn | ||||||
forColumn(column: ColumnFilter)
|
||||||
Accesses all filter predicates for a given column.
Parameters :
Returns :
FilterPredicate[]
|
isColumnFiltered | ||||||
isColumnFiltered(column: ColumnFilter)
|
||||||
Determines whether the column currently has any filter predicates.
Parameters :
Returns :
boolean
|
updated$ |
getupdated$()
|
Emits a signal, the instance itself, when the current filters are updated.
Returns :
Observable<>
|