Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame^] | 1 | /** |
2 | * Created by rc2122 on 5/10/2017. | ||||
3 | */ | ||||
4 | export class ButtonModel { | ||||
5 | text: string; | ||||
6 | cssClass: string; | ||||
7 | callback: Function; | ||||
8 | getDisabled:Function; | ||||
9 | constructor(text?:string, cssClass?:string, callback?:Function, getDisabled?:Function){ | ||||
10 | this.text = text; | ||||
11 | this.cssClass = cssClass; | ||||
12 | this.callback = callback; | ||||
13 | this.getDisabled = getDisabled; | ||||
14 | |||||
15 | } | ||||
16 | } | ||||
17 | |||||
18 | export class ButtonsModelMap { | ||||
19 | [buttonName: string]: ButtonModel; | ||||
20 | } |