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

Method constructor

src/cdk/drag-drop/drop-list-ref.ts:214–226  ·  view source on GitHub ↗
(
    element: ElementRef<HTMLElement> | HTMLElement,
    private _dragDropRegistry: DragDropRegistry,
    _document: any,
    private _ngZone: NgZone,
    private _viewportRuler: ViewportRuler,
  )

Source from the content-addressed store, hash-verified

212 private _direction: Direction = 'ltr';
213
214 constructor(
215 element: ElementRef<HTMLElement> | HTMLElement,
216 private _dragDropRegistry: DragDropRegistry,
217 _document: any,
218 private _ngZone: NgZone,
219 private _viewportRuler: ViewportRuler,
220 ) {
221 const coercedElement = (this.element = coerceElement(element));
222 this._document = _document;
223 this.withOrientation('vertical').withElementContainer(coercedElement);
224 _dragDropRegistry.registerDropContainer(this);
225 this._parentPositions = new ParentPositionTracker(_document);
226 }
227
228 /** Removes the drop list functionality from the DOM element. */
229 dispose() {

Callers

nothing calls this directly

Calls 4

withOrientationMethod · 0.95
coerceElementFunction · 0.90
registerDropContainerMethod · 0.80
withElementContainerMethod · 0.65

Tested by

no test coverage detected