Last change
on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
1.2 KB
|
Line | |
---|
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, AfterContentInit, OnDestroy } from '@angular/core';
|
---|
9 | import { Direction, Directionality } from './directionality';
|
---|
10 | /**
|
---|
11 | * Directive to listen for changes of direction of part of the DOM.
|
---|
12 | *
|
---|
13 | * Provides itself as Directionality such that descendant directives only need to ever inject
|
---|
14 | * Directionality to get the closest direction.
|
---|
15 | */
|
---|
16 | export declare class Dir implements Directionality, AfterContentInit, OnDestroy {
|
---|
17 | /** Normalized direction that accounts for invalid/unsupported values. */
|
---|
18 | private _dir;
|
---|
19 | /** Whether the `value` has been set to its initial value. */
|
---|
20 | private _isInitialized;
|
---|
21 | /** Direction as passed in by the consumer. */
|
---|
22 | _rawDir: string;
|
---|
23 | /** Event emitted when the direction changes. */
|
---|
24 | readonly change: EventEmitter<Direction>;
|
---|
25 | /** @docs-private */
|
---|
26 | get dir(): Direction;
|
---|
27 | set dir(value: Direction);
|
---|
28 | /** Current layout direction of the element. */
|
---|
29 | get value(): Direction;
|
---|
30 | /** Initialize once default value has been set. */
|
---|
31 | ngAfterContentInit(): void;
|
---|
32 | ngOnDestroy(): void;
|
---|
33 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.