projects/netgrif-components-core/src/lib/search/models/predicate/elementary-predicate.ts
The simples type of Predicate. Represents a leaf node in the predicate tree.
Properties |
|
Methods |
|
Accessors |
constructor(_query: Query, initiallyVisible)
|
|||||||||
|
Parameters :
|
| Protected _filterTextSegmentsGenerator |
Type : function
|
|
Inherited from
Predicate
|
|
Defined in
Predicate:14
|
| Protected _visible |
Type : boolean
|
|
Inherited from
Predicate
|
|
Defined in
Predicate:13
|
| 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 :
Returns :
Array<FilterTextSegment>
|
| Public createFilterTextSegments |
createFilterTextSegments()
|
|
Inherited from
Predicate
|
|
Defined in
Predicate:93
|
|
The default implementation returns an empty array.
Returns :
Array<FilterTextSegment>
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 :
Returns :
void
|
| Public show |
show()
|
|
Inherited from
Predicate
|
|
Defined in
Predicate:81
|
|
Sets the predicates state to
Returns :
void
|
| 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;
}
}