MCPcopy Index your code
hub / github.com/angular/components / setDirection

Method setDirection

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

Sets the LTR/RTL direction for the overlay.

(dir: Direction | Directionality)

Source from the content-addressed store, hash-verified

354
355 /** Sets the LTR/RTL direction for the overlay. */
356 setDirection(dir: Direction | Directionality): void {
357 this._config = {...this._config, direction: dir};
358 this._updateElementDirection();
359 }
360
361 /** Add a CSS class or an array of classes to the overlay pane. */
362 addPanelClass(classes: string | string[]): void {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected