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

Method getDirection

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

* Returns the layout direction of the overlay panel.

()

Source from the content-addressed store, hash-verified

386 * Returns the layout direction of the overlay panel.
387 */
388 getDirection(): Direction {
389 const direction = this._config.direction;
390
391 if (!direction) {
392 return 'ltr';
393 }
394
395 return typeof direction === 'string' ? direction : direction.value;
396 }
397
398 /** Switches to a new scroll strategy. */
399 updateScrollStrategy(strategy: ScrollStrategy): void {

Callers 3

overlay.spec.tsFile · 0.80
_isRtlMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected