MCPcopy Create free account
hub / github.com/angular/components / createDrag

Method createDrag

src/cdk/drag-drop/drag-drop.ts:30–35  ·  view source on GitHub ↗

* Turns an element into a draggable item. * @param element Element to which to attach the dragging functionality. * @param config Object used to configure the dragging behavior. * @deprecated Use the `createDragRef` function that provides better tree shaking. * @breaking-change 23.0.0

(
    element: ElementRef<HTMLElement> | HTMLElement,
    config?: DragRefConfig,
  )

Source from the content-addressed store, hash-verified

28 * @breaking-change 23.0.0
29 */
30 createDrag<T = any>(
31 element: ElementRef<HTMLElement> | HTMLElement,
32 config?: DragRefConfig,
33 ): DragRef<T> {
34 return createDragRef(this._injector, element, config);
35 }
36
37 /**
38 * Turns an element into a drop list.

Callers

nothing calls this directly

Calls 1

createDragRefFunction · 0.90

Tested by

no test coverage detected