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