File

query-builder/src/query-builder.interface.ts

Description

Contains the different attributes of a query builder rule.

Example :
{
 identifier: '1',
 operator: 'equal',
 key: 'name',
 label: 'Name',
 type: 'string',
 value: 'John Doe'
}

Import

Example :
import { IQueryBuilderRule } from '@talenra/components/query-builder';

Index

Properties

Properties

identifier
identifier: string
Type : string

Random identifier for the query rule.

key
key: string
Type : string
Optional

The identifier of the field that is used to compare the value with the items.

label
label: string
Type : string
Optional

The label is the translated value of the identifier.

operator
operator: TQueryBuilderStringOperator | TQueryBuilderOptionOperator | TQueryBuilderNumberOperator | TQueryBuilderDateOperator | string
Type : TQueryBuilderStringOperator | TQueryBuilderOptionOperator | TQueryBuilderNumberOperator | TQueryBuilderDateOperator | string
Optional

The operator used to compare the value with the items.

type
type: TQueryBuilderValueType
Type : TQueryBuilderValueType
Optional

The type of the value that is used to compare the items.

value
value: string | number | Date | boolean | IQueryBuilderValueOption
Type : string | number | Date | boolean | IQueryBuilderValueOption
Optional

The value that is used to compare the items.

results matching ""

    No results matching ""