本文整理汇总了TypeScript中@ng-bootstrap/ng-bootstrap.NgbActiveModal类的典型用法代码示例。如果您正苦于以下问题:TypeScript NgbActiveModal类的具体用法?TypeScript NgbActiveModal怎么用?TypeScript NgbActiveModal使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了NgbActiveModal类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: clear
clear() {
this.activeModal.dismiss('cancel');
}
示例2: onSaveSuccess
private onSaveSuccess(result: PersonelHotpersonel) {
this.eventManager.broadcast({ name: 'personelListModification', content: 'OK'});
this.isSaving = false;
this.activeModal.dismiss(result);
}
示例3: onClickedCancel
onClickedCancel(): void {
this.activeModal.close('Close click');
}
示例4: requestResetPassword
requestResetPassword() {
this.activeModal.dismiss('to state requestReset');
this.router.navigate(['/reset', 'request']);
}
示例5: onSaveSuccess
private onSaveSuccess(result: Category) {
this.eventManager.broadcast({ name: 'categoryListModification', content: 'OK'});
this.isSaving = false;
this.activeModal.dismiss(result);
}
示例6:
ok() {
this.activeModal.close(null);
}
示例7: register
register() {
this.activeModal.dismiss('to state register');
this.router.navigate(['/register']);
}
示例8: closeModal
closeModal() {
this.activeModal.close('Modal Closed');
}
示例9: onClickDismiss
onClickDismiss(){
this.activeModal.close();
}
示例10:
}).then((result) => {
if (result.value) { this.modal.dismiss(); }
});