projects/netgrif-components-core/src/lib/search/models/persistance/filter-metadata.ts
Saved filter generated by the AbstractAdvancedSearchComponent.
Properties |
|
defaultSearchCategories |
defaultSearchCategories:
|
Type : boolean
|
Optional |
Whether the search categories default to the view the filter will be loaded in should be merged with the saved categories. Defaults to a falsy value. If falsy, only the categories stored in searchCategories will be used. |
filterType |
filterType:
|
Type : FilterType
|
inheritAllowedNets |
inheritAllowedNets:
|
Type : boolean
|
Optional |
Whether the allowed nets used to generate category metadata can be inherited from frontend providers. Defaults to a falsy value. If falsy, only the allowed nets stored in the filter data field will be used to generate category metadata. |
predicateMetadata |
predicateMetadata:
|
Type : PredicateTreeMetadata
|
searchCategories |
searchCategories:
|
Type : Array<string>
|
Optional |
Serialized Category classes, that were available in the saved search component. |
import {FilterType} from '../../../filter/models/filter-type';
import {PredicateTreeMetadata} from './generator-metadata';
/**
* Saved filter generated by the {@link AbstractAdvancedSearchComponent}.
*/
export interface FilterMetadata {
filterType: FilterType;
predicateMetadata: PredicateTreeMetadata;
/**
* Serialized {@link Category} classes, that were available in the saved search component.
*/
searchCategories?: Array<string>;
/**
* Whether the search categories default to the view the filter will be loaded in should be merged with the saved categories.
*
* Defaults to a falsy value.
*
* If falsy, only the categories stored in [searchCategories]{@link FilterMetadata#searchCategories} will be used.
*/
defaultSearchCategories?: boolean;
/**
* Whether the allowed nets used to generate category metadata can be inherited from frontend providers.
*
* Defaults to a falsy value.
*
* If falsy, only the allowed nets stored in the filter data field will be used to generate category metadata.
*/
inheritAllowedNets?: boolean;
}