本文整理匯總了TypeScript中ng2-bs3-modal/ng2-bs3-modal.ModalComponent類的典型用法代碼示例。如果您正苦於以下問題:TypeScript ModalComponent類的具體用法?TypeScript ModalComponent怎麽用?TypeScript ModalComponent使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了ModalComponent類的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: 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();
}
}
示例2: mopen
public mopen() {
if (localStorage.getItem('refresh_key')) {
this.refreshBool = true;
this.loginBool = false;
this.registerBool = false;
this.modal.open();// check if refresh key is present
this.refreshLogin(); // renew auth key
}
else {
this.refreshBool = false;
this.loginBool = true;
this.registerBool = false;
this.modal.open();
}
}
示例3: Note
updateNoteDisplay(note: Note){
this.editNoteModal.open();
this.editNoteId = note._id;
this.editNoteText = note.text;
this.cachedUpdateNote = new Note(note._id, note.text, note.tags, note.updated);
this.editNoteTags = note.tags.join(', ');
}
示例4:
.sendUserFeedback(this.feedbackForm.value).then(() => {
this.feedbackModal.close();
this.isButtonActive = false
// Show notification on success
toastr.success(
this.commonService.getUXClientMessage('MSG_FEEDBACK'),
'Notification'
);
}, (errorCode: string) => {
示例5: open
public open(): void {
// Initialize form with clean values.
this.begin.setValue(dateStr(this.ts.begin));
this.end.setValue(dateStr(this.ts.end));
this.duration.setValue(durationStr(this.ts.duration));
this.stepsize.setValue(durationStr(this.ts.stepsize));
// By this time, we don't need timespec to be updated via request parameters anymore.
this._routeSubscription.unsubscribe();
this.dialog.open();
}
示例6: 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);
}
示例7: setDownloadType
setDownloadType(type:string){
console.log("fa fa");
if(type === this._npnPortalService.downloadType)
return;
if(this._npnPortalService.filtersAreSet() && !this._npnPortalService.allowDownloadTypeChangeWithoutReset) {
this.resetFiltersModal.open();
this.newType = type;
}
else {
this._npnPortalService.downloadType = type;
this._npnPortalService.setObservationCount();
}
}
示例8: 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();
}