Skip to main content

RuleType<F, O, V, C>

The main rule type. The field, operator, and value properties can be narrowed with generics.

Extends

Type parameters

Type parameterValue
F extends stringstring
O extends stringstring
Vany
C extends stringstring

Properties

combinatorPreceding?

optional combinatorPreceding: C

Only used when adding a rule to a query that uses independent combinators.

Source

packages/react-querybuilder/src/types/ruleGroups.ts:30


disabled?

optional disabled: boolean

Inherited from

CommonRuleAndGroupProperties . disabled

Source

packages/react-querybuilder/src/types/ruleGroups.ts:9


field

field: F

Source

packages/react-querybuilder/src/types/ruleGroups.ts:23


id?

optional id: string

Inherited from

CommonRuleAndGroupProperties . id

Source

packages/react-querybuilder/src/types/ruleGroups.ts:8


operator

operator: O

Source

packages/react-querybuilder/src/types/ruleGroups.ts:24


path?

optional path: Path

Inherited from

CommonRuleAndGroupProperties . path

Source

packages/react-querybuilder/src/types/ruleGroups.ts:7


value

value: V

Source

packages/react-querybuilder/src/types/ruleGroups.ts:25


valueSource?

optional valueSource: ValueSource

Source

packages/react-querybuilder/src/types/ruleGroups.ts:26


caution

API documentation is generated from the latest commit on the main branch. It may be somewhat inconsistent with official releases of React Query Builder.