File

lists/src/filter/filter.ts

Example

Index

Properties
Methods

Constructor

constructor(querying: BlueriqQuerying, session: BlueriqSession, table: Table)
Parameters :
Name Type Optional
querying BlueriqQuerying No
session BlueriqSession No
table Table No

Properties

filterOptions
filterOptions: FilterOption[]
Type : FilterOption[]
Default value : []
filterValues
filterValues: FilterValue[]
Type : FilterValue[]
Default value : []
searchField
searchField: Field
Type : Field
Decorators :
@BlueriqChild(Field)

Methods

addFilter
addFilter(filterValue: FilterValue)

Adds a filter to the list of filters, only if the filter is valid and if it does not yet exist in the list of filters.

Parameters :
Name Type Optional Description
filterValue FilterValue No

the filter to add

Returns : boolean

boolean indicating whether adding the filter succeeded or not

applyFilters
applyFilters()

Applies the list of filters by submitting the search field with the filters contents, only if filters exist.

Returns : void
clearFilters
clearFilters()

Clears the list of filters and submits the search field to the backend so the list data is retrieved without filters.

Returns : void
removeFilter
removeFilter(filterValue: FilterValue)

Removes a filter from the list of filters, if it can be found in the list.

Parameters :
Name Type Optional Description
filterValue FilterValue No

the filter to remove

Returns : boolean

boolean indicating whether the filter was successfully removed or not (in case it was not found)

result-matching ""

    No results matching ""