defaults

Methods

(static) getDefaultData(dataclasses, columns, options) → {Promise.<dataclasses.CompoundPredicate>}

Source:
Since:
  • 1.0.0
When data is not set at construction time PredicateCore default behavior will be to use the first target and its first operator with empty argument
Parameters:
Name Type Description
dataclasses Object every necessary data class
columns Object every necessary data class
options Object PredicateCore available options
Returns:
root CompoundPredicate
Type
Promise.<dataclasses.CompoundPredicate>

(static) getDefaultCompoundPredicate(predicates, columns, options) → {Promise.<dataclasses.CompoundPredicate>}

Source:
Since:
  • 1.0.0
Default compount predicate to use This function is called whenever a new CompoundPredicate is added to the UIPredicate
Parameters:
Name Type Description
predicates Array.<dataclasses.Predicate>
columns Object specified columns
options Object PredicateCore available options
Returns:
a CompoundPredicate
Type
Promise.<dataclasses.CompoundPredicate>

(static) getDefaultComparisonPredicate(columns, [options]) → {Promise.<dataclasses.ComparisonPredicate>}

Source:
Since:
  • 1.0.0
Default comparison predicate to use This function is called whenever a new ComparisonPredicate is added to the UIPredicate
Parameters:
Name Type Attributes Default Description
columns Object specified columns
options Object
optional
PredicateCore.defaults.options PredicateCore available options
Returns:
a Comparison
Type
Promise.<dataclasses.ComparisonPredicate>

(static) getDefaultLogicalType(predicates, columns, [options]) → {Promise.<dataclasses.LogicalType>}

Source:
Since:
  • 1.0.0
Default logical type to use when a new comparison predicate is created This function is called whenever a new ComparisonPredicate is added to the UIPredicate
Parameters:
Name Type Attributes Default Description
predicates Array.<dataclasses.Predicate> specified columns
columns Object specified columns
options Object
optional
PredicateCore.defaults.options PredicateCore available options
Returns:
a logical type
Type
Promise.<dataclasses.LogicalType>