blob: f0a632727ab40903ade041dedb04c09dc6e1be67 [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 Landoa5445102018-03-04 14:53:33 +02009 isMovable: boolean;
Michael Lando75aacbb2017-07-17 21:12:03 +030010
Michael Landoa5445102018-03-04 14:53:33 +020011 constructor(size?: string, title?: string, content?: any, buttons?: Array<ButtonModel>, type?: string, isMovable?: boolean) {
Michael Lando75aacbb2017-07-17 21:12:03 +030012 this.size = size;
13 this.title = title;
14 this.content = content;
15 this.buttons = buttons;
Avi Zivf5854fd2017-07-31 15:50:46 +030016 this.type = type || 'standard';
Michael Landoa5445102018-03-04 14:53:33 +020017 this.isMovable = !!isMovable;
Michael Lando75aacbb2017-07-17 21:12:03 +030018 }
19}
20