@angular2-material/grid-list
Version:
Angular 2 Material grid list
39 lines (37 loc) • 1.54 kB
JavaScript
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
import { MdError } from '@angular2-material/core';
/**
* Exception thrown when cols property is missing from grid-list
*/
export var MdGridListColsError = (function (_super) {
__extends(MdGridListColsError, _super);
function MdGridListColsError() {
_super.call(this, "md-grid-list: must pass in number of columns. Example: <md-grid-list cols=\"3\">");
}
return MdGridListColsError;
}(MdError));
/**
* Exception thrown when a tile's colspan is longer than the number of cols in list
*/
export var MdGridTileTooWideError = (function (_super) {
__extends(MdGridTileTooWideError, _super);
function MdGridTileTooWideError(cols, listLength) {
_super.call(this, "md-grid-list: tile with colspan " + cols + " is wider than grid with cols=\"" + listLength + "\".");
}
return MdGridTileTooWideError;
}(MdError));
/**
* Exception thrown when an invalid ratio is passed in as a rowHeight
*/
export var MdGridListBadRatioError = (function (_super) {
__extends(MdGridListBadRatioError, _super);
function MdGridListBadRatioError(value) {
_super.call(this, "md-grid-list: invalid ratio given for row-height: \"" + value + "\"");
}
return MdGridListBadRatioError;
}(MdError));
//# sourceMappingURL=grid-list-errors.js.map