本文整理汇总了TypeScript中ng2-bs3-modal/ng2-bs3-modal.ModalComponent.open方法的典型用法代码示例。如果您正苦于以下问题:TypeScript ModalComponent.open方法的具体用法?TypeScript ModalComponent.open怎么用?TypeScript ModalComponent.open使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ng2-bs3-modal/ng2-bs3-modal.ModalComponent
的用法示例。
在下文中一共展示了ModalComponent.open方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: 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();
}
}
示例2: updateNoteDisplay
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(', ');
}
示例3: 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();
}
}
示例4: 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();
}
示例5: 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();
}
}
示例7: ngAfterViewInit
ngAfterViewInit()
{
this.modal.open();
}
示例8: onClickFeedback
private onClickFeedback(){
this.feedbackModal.open();
}
示例9: onSelect
onSelect(valuePolicy:any, valueName:any) {
this.valuePolicySelect = valuePolicy
this.namePolicy = valueName;
this.modal.open(valueName);
}
示例10: openModal
openModal(character: ICharacter){
this.selectedCharacter = character;
this.modal.open();
}