Show:
Defined in: src/js/dsl/dsl.js:618
Module: proact-dsl

A set of predefined filtering operations to be used by the DSL.

Item Index

Methods

Methods

&.

(
  • methodName
)
Boolean static

Flitering operation for using a method of an object as a filter.

Usage in a DSL expression:

   filter(&.&boolFunc)
 
This will call the 'target.boolFunc' method and use its result as a filter.

Parameters:

  • methodName String

    The name of the method to use for filtering.

Returns:

Boolean:

The result of the method call.

+

(
  • n
)
Boolean static

Filtering operation for filtering only positive Numbers.

Usage in a DSL expression:

   filter(+)
 

Parameters:

  • n Number

    The number to check if it is positive.

Returns:

Boolean:

True, if the number is positive or zero.

-

(
  • n
)
Boolean static

Filtering operation for filtering only negative Numbers.

Usage in a DSL expression:

   filter(-)
 

Parameters:

  • n Number

    The number to check if it is negative.

Returns:

Boolean:

True, if the number is negative or zero.

all

(
  • val
)
Boolean static

Filtering operation for passing everything.

Usage in a DSL expression:

   filter(all)
 

Parameters:

Returns:

Boolean:

True.

defined

(
  • event
)
Boolean static

Filtering operation for filtering only values different from undefined.

Usage in a DSL expression:

   filter(defined)
 

Parameters:

  • event Event

    The value event to check if its value is defined.

Returns:

Boolean:

True if the value in the event is not undefined.

even

(
  • n
)
Boolean static

Filtering operation for filtering only even Numbers.

Usage in a DSL expression:

   filter(even)
 

Parameters:

  • n Number

    The number to check if it is even.

Returns:

Boolean:

True, if the number is even.

odd

(
  • n
)
Boolean static

Filtering operation for filtering only odd Numbers.

Usage in a DSL expression:

   filter(odd)
 

Parameters:

  • n Number

    The number to check if it is odd.

Returns:

Boolean:

True, if the number is odd.

originalEvent

(
  • event
)
Boolean static

Filtering operation for filtering only events that have null/undefined as a source.

Usage in a DSL expression:

   filter(originalEvent)
 

Parameters:

  • event Event

    The value event to check if it has a source or not.

Returns:

Boolean:

True if the event passed has no source.