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

Function createDropListRef

src/cdk/drag-drop/drop-list-ref.ts:57–68  ·  view source on GitHub ↗
(
  injector: Injector,
  element: ElementRef<HTMLElement> | HTMLElement,
)

Source from the content-addressed store, hash-verified

55 * @param element Element to which to attach the drop list functionality.
56 */
57export function createDropListRef<T = unknown>(
58 injector: Injector,
59 element: ElementRef<HTMLElement> | HTMLElement,
60): DropListRef<T> {
61 return new DropListRef(
62 element,
63 injector.get(DragDropRegistry),
64 injector.get(DOCUMENT),
65 injector.get(NgZone),
66 injector.get(ViewportRuler),
67 );
68}
69
70/**
71 * Reference to a drop list. Used to manipulate or dispose of the container.

Callers 2

createDropListMethod · 0.90
constructorMethod · 0.90

Calls 1

getMethod · 0.65

Tested by

no test coverage detected