Skip to main content

RuleProps<F, O>

Defined in: packages/react-querybuilder/src/types/props.ts:795

Rule props.

Extends

Extended by

Type Parameters

Type ParameterDefault type
F extends stringstring
O extends stringstring

Properties

actions

actions: QueryActions

Defined in: packages/react-querybuilder/src/types/props.ts:721

Inherited from

CommonRuleAndGroupProps.actions


context?

optional context?: any

Defined in: packages/react-querybuilder/src/types/props.ts:726

Inherited from

CommonRuleAndGroupProps.context


disabled?

optional disabled?: boolean

Defined in: packages/react-querybuilder/src/types/props.ts:722

Inherited from

CommonRuleAndGroupProps.disabled


dndRef?

optional dndRef?: Ref<HTMLDivElement>

Defined in: packages/react-querybuilder/src/types/props.ts:780

Inherited from

UseRuleDnD.dndRef


dragHandleAttributes?

optional dragHandleAttributes?: HTMLAttributes<HTMLElement>

Defined in: packages/react-querybuilder/src/types/props.ts:782

Props to spread onto the drag handle element (ARIA attributes, listeners).

Inherited from

UseRuleDnD.dragHandleAttributes


dragMonitorId?

optional dragMonitorId?: string | symbol

Defined in: packages/react-querybuilder/src/types/props.ts:776

Inherited from

UseRuleDnD.dragMonitorId


dragRef?

optional dragRef?: Ref<HTMLSpanElement>

Defined in: packages/react-querybuilder/src/types/props.ts:779

Inherited from

UseRuleDnD.dragRef


dropEffect?

optional dropEffect?: DropEffect

Defined in: packages/react-querybuilder/src/types/props.ts:784

"move" by default; "copy" if the modifier key is pressed.

Inherited from

UseRuleDnD.dropEffect


dropMonitorId?

optional dropMonitorId?: string | symbol

Defined in: packages/react-querybuilder/src/types/props.ts:778

Inherited from

UseRuleDnD.dropMonitorId


dropNotAllowed?

optional dropNotAllowed?: boolean

Defined in: packages/react-querybuilder/src/types/props.ts:787

Inherited from

UseRuleDnD.dropNotAllowed


field?

optional field?: string

Defined in: packages/react-querybuilder/src/types/props.ts:801

Deprecated

Use the field property of the rule prop instead


groupItems?

optional groupItems?: boolean

Defined in: packages/react-querybuilder/src/types/props.ts:786

True if the dragged and hovered items should form a new group.

Inherited from

UseRuleDnD.groupItems


id?

optional id?: string

Defined in: packages/react-querybuilder/src/types/props.ts:715

Inherited from

CommonRuleAndGroupProps.id


isDragging?

optional isDragging?: boolean

Defined in: packages/react-querybuilder/src/types/props.ts:775

Inherited from

UseRuleDnD.isDragging


isOver?

optional isOver?: boolean

Defined in: packages/react-querybuilder/src/types/props.ts:777

Inherited from

UseRuleDnD.isOver


operator?

optional operator?: string

Defined in: packages/react-querybuilder/src/types/props.ts:805

Deprecated

Use the operator property of the rule prop instead


parentDisabled?

optional parentDisabled?: boolean

Defined in: packages/react-querybuilder/src/types/props.ts:717

Inherited from

CommonRuleAndGroupProps.parentDisabled


parentMuted?

optional parentMuted?: boolean

Defined in: packages/react-querybuilder/src/types/props.ts:718

Inherited from

CommonRuleAndGroupProps.parentMuted


path

path: Path

Defined in: packages/react-querybuilder/src/types/props.ts:716

Inherited from

CommonRuleAndGroupProps.path


rule

rule: RuleType<F, O>

Defined in: packages/react-querybuilder/src/types/props.ts:797


schema

schema: Schema<{[key: string]: unknown; disabled?: boolean; label: string; name: F; value: F; }, O>

Defined in: packages/react-querybuilder/src/types/props.ts:720

Inherited from

CommonRuleAndGroupProps.schema


shiftDownDisabled?

optional shiftDownDisabled?: boolean

Defined in: packages/react-querybuilder/src/types/props.ts:724

Inherited from

CommonRuleAndGroupProps.shiftDownDisabled


shiftUpDisabled?

optional shiftUpDisabled?: boolean

Defined in: packages/react-querybuilder/src/types/props.ts:723

Inherited from

CommonRuleAndGroupProps.shiftUpDisabled


translations

translations: Translations

Defined in: packages/react-querybuilder/src/types/props.ts:719

Inherited from

CommonRuleAndGroupProps.translations


value?

optional value?: any

Defined in: packages/react-querybuilder/src/types/props.ts:810

Deprecated

Use the value property of the rule prop instead


valueSource?

optional valueSource?: ValueSource

Defined in: packages/react-querybuilder/src/types/props.ts:814

Deprecated

Use the valueSource property of the rule prop instead


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.