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

Method _reset

src/cdk/drag-drop/drop-list-ref.ts:635–645  ·  view source on GitHub ↗

Resets the container to its initial state.

()

Source from the content-addressed store, hash-verified

633
634 /** Resets the container to its initial state. */
635 private _reset() {
636 this._isDragging = false;
637 const styles = this._container.style as DragCSSStyleDeclaration;
638 styles.scrollSnapType = styles.msScrollSnapType = this._initialScrollSnap;
639
640 this._siblings.forEach(sibling => sibling._stopReceiving(this));
641 this._sortStrategy.reset();
642 this._stopScrolling();
643 this._viewportScrollSubscription.unsubscribe();
644 this._parentPositions.clear();
645 }
646
647 /** Starts the interval that'll auto-scroll the element. */
648 private _startScrollInterval = () => {

Callers 3

exitMethod · 0.95
dropMethod · 0.95
withItemsMethod · 0.95

Calls 4

_stopScrollingMethod · 0.95
_stopReceivingMethod · 0.80
resetMethod · 0.65
clearMethod · 0.65

Tested by

no test coverage detected