source: trip-planner-front/node_modules/@angular/material/grid-list/grid-list.d.ts@ ceaed42

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

initial commit

  • Property mode set to 100644
File size: 3.0 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 { AfterContentChecked, OnInit, QueryList, ElementRef } from '@angular/core';
9import { MatGridTile } from './grid-tile';
10import { TileStyleTarget } from './tile-styler';
11import { Directionality } from '@angular/cdk/bidi';
12import { NumberInput } from '@angular/cdk/coercion';
13import { MatGridListBase } from './grid-list-base';
14import * as ɵngcc0 from '@angular/core';
15export declare class MatGridList implements MatGridListBase, OnInit, AfterContentChecked, TileStyleTarget {
16 private _element;
17 private _dir;
18 /** Number of columns being rendered. */
19 private _cols;
20 /** Used for determiningthe position of each tile in the grid. */
21 private _tileCoordinator;
22 /**
23 * Row height value passed in by user. This can be one of three types:
24 * - Number value (ex: "100px"): sets a fixed row height to that value
25 * - Ratio value (ex: "4:3"): sets the row height based on width:height ratio
26 * - "Fit" mode (ex: "fit"): sets the row height to total height divided by number of rows
27 */
28 private _rowHeight;
29 /** The amount of space between tiles. This will be something like '5px' or '2em'. */
30 private _gutter;
31 /** Sets position and size styles for a tile */
32 private _tileStyler;
33 /** Query list of tiles that are being rendered. */
34 _tiles: QueryList<MatGridTile>;
35 constructor(_element: ElementRef<HTMLElement>, _dir: Directionality);
36 /** Amount of columns in the grid list. */
37 get cols(): number;
38 set cols(value: number);
39 /** Size of the grid list's gutter in pixels. */
40 get gutterSize(): string;
41 set gutterSize(value: string);
42 /** Set internal representation of row height from the user-provided value. */
43 get rowHeight(): string | number;
44 set rowHeight(value: string | number);
45 ngOnInit(): void;
46 /**
47 * The layout calculation is fairly cheap if nothing changes, so there's little cost
48 * to run it frequently.
49 */
50 ngAfterContentChecked(): void;
51 /** Throw a friendly error if cols property is missing */
52 private _checkCols;
53 /** Default to equal width:height if rowHeight property is missing */
54 private _checkRowHeight;
55 /** Creates correct Tile Styler subtype based on rowHeight passed in by user */
56 private _setTileStyler;
57 /** Computes and applies the size and position for all children grid tiles. */
58 private _layoutTiles;
59 /** Sets style on the main grid-list element, given the style name and value. */
60 _setListStyle(style: [string, string | null] | null): void;
61 static ngAcceptInputType_cols: NumberInput;
62 static ɵfac: ɵngcc0.ɵɵFactoryDeclaration<MatGridList, [null, { optional: true; }]>;
63 static ɵcmp: ɵngcc0.ɵɵComponentDeclaration<MatGridList, "mat-grid-list", ["matGridList"], { "cols": "cols"; "gutterSize": "gutterSize"; "rowHeight": "rowHeight"; }, {}, ["_tiles"], ["*"]>;
64}
65
66//# sourceMappingURL=grid-list.d.ts.map
Note: See TracBrowser for help on using the repository browser.