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

Method setDirection

src/cdk/overlay/overlay-ref.ts:366–369  ·  view source on GitHub ↗

Sets the LTR/RTL direction for the overlay.

(dir: Direction | Directionality)

Source from the content-addressed store, hash-verified

364
365 /** Sets the LTR/RTL direction for the overlay. */
366 setDirection(dir: Direction | Directionality): void {
367 this._config = {...this._config, direction: dir};
368 this._updateElementDirection();
369 }
370
371 /** Add a CSS class or an array of classes to the overlay pane. */
372 addPanelClass(classes: string | string[]): void {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected