本文整理汇总了TypeScript中ng2-bs3-modal/ng2-bs3-modal.ModalComponent.close方法的典型用法代码示例。如果您正苦于以下问题:TypeScript ModalComponent.close方法的具体用法?TypeScript ModalComponent.close怎么用?TypeScript ModalComponent.close使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ng2-bs3-modal/ng2-bs3-modal.ModalComponent
的用法示例。
在下文中一共展示了ModalComponent.close方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1:
}, (errorCode: string) => {
this.feedbackModal.close();
this.isButtonActive = false;
// Show error
toastr.error(
this.commonService.getUXServerError(errorCode),
'Uh Oh...'
);
});
示例2: eventToggleHelp
private eventToggleHelp(){
// Toggle the help modal state
this.isHelpModalOpen = !this.isHelpModalOpen;
// Open or close the modal depending on help modal state variable
if (this.isHelpModalOpen){
this.helpModal.open();
} else {
this.helpModal.close();
}
}
示例3: addVm
addVm(vmName:any, policyName:any){
console.log("Policy Name",policyName);
if(policyName === "Select Policy"){
this.removeVm(vmName) ;
}
else{
}
this.vmAdd.push(vmName);
console.log(this.vmAdd);
this.modal.close();
this.checkRed(vmName);
}
示例4: onSubmit
private onSubmit() {
// Apply update to timespec service.
this.ts.update(
decodeDate(this.formModel.value.begin),
decodeDate(this.formModel.value.end),
decodeDuration(this.formModel.value.duration),
decodeDuration(this.formModel.value.stepsize));
// Apply update to URL query parameters.
let params: Map<string, string> = new Map<string, string>();
if (this.ts.begin != null) params['tsb'] = this.ts.begin.getTime().toString();
if (this.ts.end != null) params['tse'] = this.ts.end.getTime().toString();
if (this.ts.duration != null) params['tsd'] = durationToString(this.ts.duration);
if (this.ts.stepsize != null) params['tss'] = durationToString(this.ts.stepsize);
this._router.navigate([], { relativeTo: this._route, replaceUrl: true, queryParams: params });
this.dialog.close();
}
示例6:
this.characterService.removeCharacterById(id, (err: boolean, response: any) => {
if(!err){
this.emitterService.emit({command: Commands.RELOAD_SEARCH});
this.modal.close();
}
});
示例7: close
close() {
this.modal.close();
this._router.navigate(['']);
}
示例8: closeUpdateModal
closeUpdateModal() {
this.updateModal.close();
}
示例9: mclose
public mclose() {
this.modal.close();
$('body').removeClass('modal-open');
$('.modal-backdrop').remove();
}