File

projects/netgrif-components-core/src/lib/search/models/predicate/elementary-predicate.ts

Description

The simples type of Predicate. Represents a leaf node in the predicate tree.

Extends

Predicate

Index

Properties
Methods
Accessors

Constructor

constructor(_query: Query, initiallyVisible)
Parameters :
Name Type Optional
_query Query No
initiallyVisible No

Properties

Protected _filterTextSegmentsGenerator
Type : function
Inherited from Predicate
Defined in Predicate:14
Protected _visible
Type : boolean
Inherited from Predicate
Defined in Predicate:13

Methods

Static combineTextSegmentsWithBooleanOperator
combineTextSegmentsWithBooleanOperator(predicates: IterableIterator<Predicate> | Array<Predicate>, operator: BooleanOperator, wrapWithBrackets)
Inherited from Predicate
Defined in Predicate:46

Combines the text segments of the predicates with the given operator and wraps the individual predicates in brackets optionaly (if only one predicate is provided it is never wrapped)

Parameters :
Name Type Optional Default value Description
predicates IterableIterator<Predicate> | Array<Predicate> No

sources of text segments that are to be combined with a boolean operator

operator BooleanOperator No

boolean operator used to combine the individual predicate text segments

wrapWithBrackets No false

whether the individual predicate text segments should be wrapped in braces or not (if only one predicate is provided it is never wrapped)

Public createFilterTextSegments
createFilterTextSegments()
Inherited from Predicate
Defined in Predicate:93

The default implementation returns an empty array.

an Array containing text segments representing the content of this predicate. The default implementation returns an empty array.

Public setFilterTextSegmentsGenerator
setFilterTextSegmentsGenerator(filterTextSegmentsGenerator: () => void)
Inherited from Predicate
Defined in Predicate:85
Parameters :
Name Type Optional
filterTextSegmentsGenerator function No
Returns : void
Public show
show()
Inherited from Predicate
Defined in Predicate:81

Sets the predicates state to visible

Returns : void

Accessors

query
getquery()
import {Predicate} from './predicate';
import {Query} from '../query/query';

/**
 * The simples type of `Predicate`. Represents a leaf node in the predicate tree.
 */
export class ElementaryPredicate extends Predicate {

    constructor(protected _query: Query, initiallyVisible = true) {
        super(initiallyVisible);
    }

    get query(): Query {
        return this._query;
    }

}

results matching ""

    No results matching ""