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

Method withParent

src/cdk/drag-drop/drag-ref.ts:532–535  ·  view source on GitHub ↗

Sets the parent ref that the ref is nested in.

(parent: DragRef<unknown> | null)

Source from the content-addressed store, hash-verified

530
531 /** Sets the parent ref that the ref is nested in. */
532 withParent(parent: DragRef<unknown> | null): this {
533 this._parentDragRef = parent;
534 return this;
535 }
536
537 /** Removes the dragging functionality from the DOM element. */
538 dispose() {

Callers 2

constructorMethod · 0.80
_syncInputsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected