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

Method init

src/material/grid-list/tile-styler.ts:176–186  ·  view source on GitHub ↗
(gutterSize: string, tracker: TileCoordinator, cols: number, direction: string)

Source from the content-addressed store, hash-verified

174 }
175
176 override init(gutterSize: string, tracker: TileCoordinator, cols: number, direction: string) {
177 super.init(gutterSize, tracker, cols, direction);
178 this.fixedRowHeight = normalizeUnits(this.fixedRowHeight);
179
180 if (
181 !cssCalcAllowedValue.test(this.fixedRowHeight) &&
182 (typeof ngDevMode === 'undefined' || ngDevMode)
183 ) {
184 throw Error(`Invalid value "${this.fixedRowHeight}" set as rowHeight.`);
185 }
186 }
187
188 override setRowStyles(tile: MatGridTile, rowIndex: number): void {
189 tile._setStyle('top', this.getTilePosition(this.fixedRowHeight, rowIndex));

Callers 1

_layoutTilesMethod · 0.45

Calls 1

normalizeUnitsFunction · 0.85

Tested by

no test coverage detected