1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | var FlashMessage = (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 | }());
|
22 | exports.FlashMessage = FlashMessage;
|
23 |
|
\ | No newline at end of file |