source: trip-planner-front/node_modules/@angular/material/tabs/ink-bar.d.ts@ fa375fe

Last change on this file since fa375fe was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.9 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 */
8import { ElementRef, InjectionToken, NgZone } from '@angular/core';
9/**
10 * Interface for a a MatInkBar positioner method, defining the positioning and width of the ink
11 * bar in a set of tabs.
12 */
13import * as ɵngcc0 from '@angular/core';
14export interface _MatInkBarPositioner {
15 (element: HTMLElement): {
16 left: string;
17 width: string;
18 };
19}
20/** Injection token for the MatInkBar's Positioner. */
21export declare const _MAT_INK_BAR_POSITIONER: InjectionToken<_MatInkBarPositioner>;
22/**
23 * The default positioner function for the MatInkBar.
24 * @docs-private
25 */
26export declare function _MAT_INK_BAR_POSITIONER_FACTORY(): _MatInkBarPositioner;
27/**
28 * The ink-bar is used to display and animate the line underneath the current active tab label.
29 * @docs-private
30 */
31export declare class MatInkBar {
32 private _elementRef;
33 private _ngZone;
34 private _inkBarPositioner;
35 _animationMode?: string | undefined;
36 constructor(_elementRef: ElementRef<HTMLElement>, _ngZone: NgZone, _inkBarPositioner: _MatInkBarPositioner, _animationMode?: string | undefined);
37 /**
38 * Calculates the styles from the provided element in order to align the ink-bar to that element.
39 * Shows the ink bar if previously set as hidden.
40 * @param element
41 */
42 alignToElement(element: HTMLElement): void;
43 /** Shows the ink bar. */
44 show(): void;
45 /** Hides the ink bar. */
46 hide(): void;
47 /**
48 * Sets the proper styles to the ink bar element.
49 * @param element
50 */
51 private _setStyles;
52 static ɵfac: ɵngcc0.ɵɵFactoryDeclaration<MatInkBar, [null, null, null, { optional: true; }]>;
53 static ɵdir: ɵngcc0.ɵɵDirectiveDeclaration<MatInkBar, "mat-ink-bar", never, {}, {}, never>;
54}
55
56//# sourceMappingURL=ink-bar.d.ts.map
Note: See TracBrowser for help on using the repository browser.