MCPcopy Create free account
hub / github.com/angular/components / init

Function init

src/material/grid-list/tile-styler.ts:46–52  ·  view source on GitHub ↗

* Adds grid-list layout info once it is available. Cannot be processed in the constructor * because these properties haven't been calculated by that point. * * @param gutterSize Size of the grid's gutter. * @param tracker Instance of the TileCoordinator. * @param cols Amount of column

(gutterSize: string, tracker: TileCoordinator, cols: number, direction: string)

Source from the content-addressed store, hash-verified

44 * @param direction Layout direction of the grid.
45 */
46 init(gutterSize: string, tracker: TileCoordinator, cols: number, direction: string): void {
47 this._gutterSize = normalizeUnits(gutterSize);
48 this._rows = tracker.rowCount;
49 this._rowspan = tracker.rowspan;
50 this._cols = cols;
51 this._direction = direction;
52 }
53
54 /**
55 * Computes the amount of space a single 1x1 tile would take up (width or height).

Callers

nothing calls this directly

Calls 1

normalizeUnitsFunction · 0.85

Tested by

no test coverage detected