blob: b7bdf251fe538df2b597d4ef24b27e7e5c8fef24 [file] [log] [blame]
Michael Lando75aacbb2017-07-17 21:12:03 +03001import { ButtonModel } from 'app/models';
2
3export class ModalModel {
4 size: string; 'xl|l|md|sm|xsm'
5 title: string;
6 content: any;
7 buttons: Array<ButtonModel>;
Avi Zivf5854fd2017-07-31 15:50:46 +03008 type: string; 'standard|error|alert'
Michael Lando75aacbb2017-07-17 21:12:03 +03009
Avi Zivf5854fd2017-07-31 15:50:46 +030010 constructor(size?: string, title?: string, content?: any, buttons?: Array<ButtonModel>, type?:string) {
Michael Lando75aacbb2017-07-17 21:12:03 +030011 this.size = size;
12 this.title = title;
13 this.content = content;
14 this.buttons = buttons;
Avi Zivf5854fd2017-07-31 15:50:46 +030015 this.type = type || 'standard';
Michael Lando75aacbb2017-07-17 21:12:03 +030016 }
17}
18