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

Method setDirection

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

Sets the LTR/RTL direction for the overlay.

(dir: Direction | Directionality)

Source from the content-addressed store, hash-verified

381
382 /** Sets the LTR/RTL direction for the overlay. */
383 setDirection(dir: Direction | Directionality): void {
384 this._config = {...this._config, direction: dir};
385 this._updateElementDirection();
386 }
387
388 /** Add a CSS class or an array of classes to the overlay pane. */
389 addPanelClass(classes: string | string[]): void {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected