File

projects/netgrif-components-core/src/lib/search/models/persistance/filter-metadata.ts

Description

Saved filter generated by the AbstractAdvancedSearchComponent.

Index

Properties

Properties

defaultSearchCategories
defaultSearchCategories: boolean
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: FilterType
Type : FilterType
inheritAllowedNets
inheritAllowedNets: boolean
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: PredicateTreeMetadata
Type : PredicateTreeMetadata
searchCategories
searchCategories: Array<string>
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;
}

result-matching ""

    No results matching ""