Michael Lando | 75aacbb | 2017-07-17 21:12:03 +0300 | [diff] [blame] | 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>; |
Avi Ziv | f5854fd | 2017-07-31 15:50:46 +0300 | [diff] [blame] | 8 | type: string; 'standard|error|alert' |
Michael Lando | 75aacbb | 2017-07-17 21:12:03 +0300 | [diff] [blame] | 9 | |
Avi Ziv | f5854fd | 2017-07-31 15:50:46 +0300 | [diff] [blame] | 10 | constructor(size?: string, title?: string, content?: any, buttons?: Array<ButtonModel>, type?:string) { |
Michael Lando | 75aacbb | 2017-07-17 21:12:03 +0300 | [diff] [blame] | 11 | this.size = size; |
| 12 | this.title = title; |
| 13 | this.content = content; |
| 14 | this.buttons = buttons; |
Avi Ziv | f5854fd | 2017-07-31 15:50:46 +0300 | [diff] [blame] | 15 | this.type = type || 'standard'; |
Michael Lando | 75aacbb | 2017-07-17 21:12:03 +0300 | [diff] [blame] | 16 | } |
| 17 | } |
| 18 | |