DragDropConfig
Объект, который можно использовать для настройки перетаскиваемых элементов и списков для перетаскивания в модуле или компоненте.
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
numberМинимальное расстояние в пикселях, на которое пользователь должен перетащить элемент, прежде чем CDK начнёт перетаскивание.
pointerDirectionChangeThreshold
numberРасстояние в пикселях, на которое пользователь должен перетащить элемент, прежде чем CDK определит, что направление перетаскивания изменилось.
parentDragRef
DragRef<any> | undefinedСсылка на объект перетаскивания, внутри которого находится текущий перетаскиваемый элемент.
Super-powered by Google ©2010–2025.
Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.
https://angular.dev/api/cdk/drag-drop/DragDropConfig