UNPKG

770 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3var FlashMessage = /** @class */ (function () {
4 function FlashMessage(text, cssClass, closeOnClick, showCloseBtn) {
5 this.id = (FlashMessage.nextId++);
6 this.text = 'default text';
7 this.cssClass = '';
8 this.closeOnClick = false;
9 this.showCloseBtn = false;
10 if (text)
11 this.text = text;
12 if (cssClass)
13 this.cssClass = cssClass;
14 if (closeOnClick)
15 this.closeOnClick = closeOnClick;
16 if (showCloseBtn)
17 this.showCloseBtn = showCloseBtn;
18 }
19 FlashMessage.nextId = 0;
20 return FlashMessage;
21}());
22exports.FlashMessage = FlashMessage;
23//# sourceMappingURL=flash-message.js.map
\No newline at end of file