src/lib/shared/interfaces/filter-search-sort.interface.ts
IFilterSortSearch is used to define what kind of filters, sort and searched text are used in the inbox.
Example :import { IFilterSortSearch } from '@talenra/inbox';filterSortSearch: IFilterSortSearch = { searchText: 'searched text', sortAttributes: [{identifier: 'caseId', sort: 'asc'}], filterAttributes: [{ identifier: 'animal.mammal', value: [{ key: 'landAnimalMonkey', label: 'Monkey' }, { key: 'waterAnimalWhale', label: 'Whale' }] }, { identifier: 'animal.mammal', value: { start: 'AR', end: 'JAB' } }], iconAttributes: [{ icon: "error", identifier: "icon_error_insuree.partnerFlags" }], };
Properties |
| filterAttributes |
filterAttributes:
|
Type : IQueryBuilderQuery
|
|
FilterAttributes is used to define which attributes are used to filter the items in the inbox. |
| iconAttributes |
iconAttributes:
|
Type : IIconFiltersInput[]
|
|
IconAttributes is used to define which icon filters are active in the inbox. |
| numberMainAttributesChosenByUser |
numberMainAttributesChosenByUser:
|
Type : number
|
|
Number of main attributes chosen by user. |
| searchText |
searchText:
|
Type : string
|
|
Searched text in the search bar. |
| selectedDetailAttributes |
selectedDetailAttributes:
|
Type : string[]
|
|
The selected detail attributes identifiers. |
| selectedMainAttributes |
selectedMainAttributes:
|
Type : string[]
|
|
The selected main attributes identifiers. |
| simpleFilterAttributes |
simpleFilterAttributes:
|
Type : IFilterAttribute[]
|
| Optional |
|
SimpleFilterAttributes is used to define which attributes are used to filter the items in the inbox. #Important: only temporary, will be removed after rc phase |
| sortAttributes |
sortAttributes:
|
Type : ISortAttributesInput[]
|
|
SortAttributes is used to define which attributes are used to sort the items in the inbox. |