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

Method _checkCols

src/material/grid-list/grid-list.ts:131–137  ·  view source on GitHub ↗

Throw a friendly error if cols property is missing

()

Source from the content-addressed store, hash-verified

129
130 /** Throw a friendly error if cols property is missing */
131 private _checkCols() {
132 if (!this.cols && (typeof ngDevMode === 'undefined' || ngDevMode)) {
133 throw Error(
134 `mat-grid-list: must pass in number of columns. ` + `Example: <mat-grid-list cols="3">`,
135 );
136 }
137 }
138
139 /** Default to equal width:height if rowHeight property is missing */
140 private _checkRowHeight(): void {

Callers 1

ngOnInitMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected