Skip to main content

UseRuleGroupDnD

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

Return type of @react-querybuilder/dnd!useRuleGroupDnD hook.

Properties​

dragHandleAttributes?​

optional dragHandleAttributes?: HTMLAttributes<HTMLElement>

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

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


dragMonitorId​

dragMonitorId: string | symbol

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


dragRef​

dragRef: Ref<HTMLSpanElement>

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


dropEffect?​

optional dropEffect?: DropEffect

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

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


dropMonitorId​

dropMonitorId: string | symbol

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


dropNotAllowed?​

optional dropNotAllowed?: boolean

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


dropRef​

dropRef: Ref<HTMLDivElement>

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


groupItems?​

optional groupItems?: boolean

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

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


isDragging​

isDragging: boolean

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


isOver​

isOver: boolean

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


previewRef​

previewRef: Ref<HTMLDivElement>

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


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.