src/29-modalCollection.ts (raw)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
class ModalCollection { createOverlay: CreateOverlayModal; cancel: CancelModal; okCancel: OKCancelModal; constructor( createOverlay: CreateOverlayModal, cancel: CancelModal, okCancel: OKCancelModal ) { this.createOverlay = createOverlay; this.cancel = cancel; this.okCancel = okCancel; } closeAll(): void { this.createOverlay.setVisible(false); this.cancel.setVisible(false); this.okCancel.setVisible(false); } } |