[]
        
(Showing Draft Content)

FilterCondition Class

FilterCondition Class

Defines a filter condition.

This class is used by the FlexGridFilter class; you will rarely have to use it directly.

Heirarchy

  • FilterCondition

Constructors

Properties

Methods

Constructors

constructor

Properties

isActive

isActive: boolean

Gets a value that indicates whether the condition is active.

operator

operator: Operator

Gets or sets the operator used by this FilterCondition.

value

value: any

Gets or sets the value used by this FilterCondition.

Methods

apply

  • apply(value: any, dateOnly?: boolean, timeOnly?: boolean): boolean
  • Returns a value that determines whether the given value passes this FilterCondition.

    Parameters

    • value: any

      The value to test.

    • Optional dateOnly: boolean

      Whether to disregard the time part of Date values.

    • Optional timeOnly: boolean

      Whether to disregard the date part of Date values.

    Returns boolean

clear

  • clear(): void
  • Clears the condition.

    Returns void