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

Method withDirection

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

Sets the layout direction of the drop list.

(direction: Direction)

Source from the content-addressed store, hash-verified

352
353 /** Sets the layout direction of the drop list. */
354 withDirection(direction: Direction): this {
355 this._direction = direction;
356 if (this._sortStrategy instanceof SingleAxisSortStrategy) {
357 this._sortStrategy.direction = direction;
358 }
359 return this;
360 }
361
362 /**
363 * Sets the containers that are connected to this one. When two or more containers are

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected