Fix bugs in attribute outputs page
[sdc.git] / catalog-ui / src / app / models / modal.ts
1 import { ButtonModel } from 'app/models';
2
3 export class ModalModel {
4     size: string; 'xl|l|md|sm|xsm'
5     title: string;
6     content: any;
7     buttons: Array<ButtonModel>;
8     type: string; 'standard|error|alert'
9     isMovable: boolean;
10
11     constructor(size?: string, title?: string, content?: any, buttons?: Array<ButtonModel>, type?: string, isMovable?: boolean) {
12         this.size = size;
13         this.title = title;
14         this.content = content;
15         this.buttons = buttons;
16         this.type = type || 'standard';
17         this.isMovable = !!isMovable;
18     }
19 }
20