Skip to main content

UseRuleDnD

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

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

Properties​

dndRef​

dndRef: Ref<HTMLDivElement>

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


dragHandleAttributes?​

optional dragHandleAttributes?: HTMLAttributes<HTMLElement>

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

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


dragMonitorId​

dragMonitorId: string | symbol

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


dragRef​

dragRef: Ref<HTMLSpanElement>

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


dropEffect?​

optional dropEffect?: DropEffect

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

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


dropMonitorId​

dropMonitorId: string | symbol

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


dropNotAllowed?​

optional dropNotAllowed?: boolean

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


groupItems?​

optional groupItems?: boolean

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

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


isDragging​

isDragging: boolean

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


isOver​

isOver: boolean

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


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.