DragDropConfig
interface
Object that can be used to configure the drag items and drop lists within a module or a component.
API
interface DragDropConfig extends Partial<DragRefConfig> { lockAxis?: DragAxis | null | undefined; dragStartDelay?: DragStartDelay | undefined; constrainPosition?: DragConstrainPosition | undefined; previewClass?: string | string[] | undefined; boundaryElement?: string | undefined; rootElementSelector?: string | undefined; draggingDisabled?: boolean | undefined; sortingDisabled?: boolean | undefined; listAutoScrollDisabled?: boolean | undefined; listOrientation?: DropListOrientation | undefined; zIndex?: number | undefined; previewContainer?: "global" | "parent" | undefined; override dragStartThreshold: number; override pointerDirectionChangeThreshold: number; override parentDragRef?: DragRef<any> | undefined;}
lockAxis
DragAxis | null | undefineddragStartDelay
DragStartDelay | undefinedconstrainPosition
DragConstrainPosition | undefinedpreviewClass
string | string[] | undefinedboundaryElement
string | undefinedrootElementSelector
string | undefineddraggingDisabled
boolean | undefinedsortingDisabled
boolean | undefinedlistAutoScrollDisabled
boolean | undefinedlistOrientation
DropListOrientation | undefinedzIndex
number | undefinedpreviewContainer
"global" | "parent" | undefineddragStartThreshold
numberMinimum amount of pixels that the user should drag, before the CDK initiates a drag sequence.
pointerDirectionChangeThreshold
numberAmount the pixels the user should drag before the CDK considers them to have changed the drag direction.
parentDragRef
DragRef<any> | undefinedRef that the current drag item is nested in.
Jump to details