Spec-Zone.ru › Angular

createDragRef

Creates a DragRef for an element, turning it into a draggable item.

API

function createDragRef<T = unknown>(
  injector: Injector,
  element: any,
  config?: DragRefConfig,
): DragRef<T>;
@paraminjectorInjector

Injector used to resolve dependencies.

@paramelementany

Element to which to attach the dragging functionality.

@paramconfigDragRefConfig

Object used to configure the dragging behavior.

@returnsDragRef<T>

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

Spec-Zone.ru

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