Interface RuleOptions

interface RuleOptions {
    active?: boolean;
    expression?: string | number;
    isCustom?: boolean;
    literal?: string | number | string[];
    lowerBoundary?: number;
    name: string;
    operator?: string;
    operators?: string[];
    propertyName: string;
    type?: string;
    upperBoundary?: number;
}

Properties

active?: boolean

Whether the rule is active or not. Used by the ngeo-rule component.

expression?: string | number

Deprecated. Use literal instead. Kept for compatibility with saved filters.

isCustom?: boolean

Whether the rule is a custom one or not. Defaults to true.

literal?: string | number | string[]

The literal of the rule. The literal and boundaries are mutually exclusives.

lowerBoundary?: number

The lower boundary of the rule. The literal and boundaries are mutually exclusives.

name: string

The human-readable name of the rule.

operator?: string

The rule operator.

operators?: string[]

The rule operators.

propertyName: string

The property name (a.k.a. the attribute name).

type?: string

The type of rule.

upperBoundary?: number

The upper boundary of the rule. The literal and boundaries are mutually exclusives.