directionality.d.ts 779 B

123456789101112131415161718192021
  1. /**
  2. * @license
  3. * Copyright Google LLC All Rights Reserved.
  4. *
  5. * Use of this source code is governed by an MIT-style license that can be
  6. * found in the LICENSE file at https://angular.io/license
  7. */
  8. import { EventEmitter, OnDestroy } from '@angular/core';
  9. export declare type Direction = 'ltr' | 'rtl';
  10. /**
  11. * The directionality (LTR / RTL) context for the application (or a subtree of it).
  12. * Exposes the current direction and a stream of direction changes.
  13. */
  14. export declare class Directionality implements OnDestroy {
  15. /** The current 'ltr' or 'rtl' value. */
  16. readonly value: Direction;
  17. /** Stream that emits whenever the 'ltr' / 'rtl' state changes. */
  18. readonly change: EventEmitter<Direction>;
  19. constructor(_document?: any);
  20. ngOnDestroy(): void;
  21. }