Spec-Zone.ru › Angular

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 | 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

dragStartThreshold

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

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API