Skip to main content

computeDestinationFromQuadrant()

computeDestinationFromQuadrant(targetPath: Path, targetType: DndDropTargetType, quadrant: "upper" | "lower"): Path

Defined in: dnd/src/shadowQuery.ts:17

Computes the destination path for a quadrant-based drag target.

  • Rule, upper quadrant: Insert before the target rule.
  • Rule, lower quadrant: Insert after the target rule.
  • RuleGroup header: Insert as first child of the group (position 0).

Parameters

ParameterType
targetPathPath
targetTypeDndDropTargetType
quadrant"upper" | "lower"

Returns

Path


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.