1 | import { InjectionToken } from '@angular/core';
|
2 | import { Observable } from 'rxjs';
|
3 |
|
4 |
|
5 |
|
6 | export declare enum NbLayoutDirection {
|
7 | LTR = "ltr",
|
8 | RTL = "rtl"
|
9 | }
|
10 |
|
11 |
|
12 |
|
13 | export declare const NB_LAYOUT_DIRECTION: InjectionToken<NbLayoutDirection>;
|
14 |
|
15 |
|
16 |
|
17 |
|
18 | export declare class NbLayoutDirectionService {
|
19 | private direction;
|
20 | private $directionChange;
|
21 | constructor(direction?: NbLayoutDirection);
|
22 | /**
|
23 | * Returns true if layout direction set to left to right.
|
24 | * @returns boolean.
|
25 | * */
|
26 | isLtr(): boolean;
|
27 | /**
|
28 | * Returns true if layout direction set to right to left.
|
29 | * @returns boolean.
|
30 | * */
|
31 | isRtl(): boolean;
|
32 | /**
|
33 | * Returns current layout direction.
|
34 | * @returns NbLayoutDirection.
|
35 | * */
|
36 | getDirection(): NbLayoutDirection;
|
37 | /**
|
38 | * Sets layout direction
|
39 | * @param {NbLayoutDirection} direction
|
40 | */
|
41 | setDirection(direction: NbLayoutDirection): void;
|
42 | |
43 |
|
44 |
|
45 |
|
46 | onDirectionChange(): Observable<NbLayoutDirection>;
|
47 | }
|