本文整理汇总了TypeScript中aurelia-dialog.DialogService类的典型用法代码示例。如果您正苦于以下问题:TypeScript DialogService类的具体用法?TypeScript DialogService怎么用?TypeScript DialogService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了DialogService类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的TypeScript代码示例。
示例1: deleteModal
deleteModal(user) {
(this.dialogService).open({ viewModel: DeleteDialog, model: user }).then(response => {
if (!response.wasCancelled) {
this.deleteModal2(user)
}
});
}
开发者ID:atul221282,项目名称:AureliaTSApp,代码行数:7,代码来源:login.ts
示例2: new
new() {
this.dialogService.open({ viewModel: EditJobPhase})
.whenClosed(result => {
if(result.wasCancelled) return;
Notifications.success('Job Phase saved successfully');
this.refresh();
})
.catch(Notifications.error);
}
开发者ID:Resounding,项目名称:Jobs-Web,代码行数:10,代码来源:list.ts
示例3: removeAssignie
removeAssignie(userName: any)
{
this.dlg.open({ viewModel: Confirm, model: 'Do you want to remove this user as asignee: ' + userName })
.whenClosed(response =>
{
console.log(response);
if (!response.wasCancelled) {
let index = this.assigniees.findIndex(element => element === userName);
this.assigniees.splice(index, 1);
}
});
}
开发者ID:yordan-milkov,项目名称:TaskBo-rd,代码行数:12,代码来源:editTask.ts
示例4: removeCheck
removeCheck(checkData: any)
{
this.dlg.open({ viewModel: Confirm, model: 'Do you want to delete this check box:' + checkData.name })
.whenClosed(response =>
{
if (!response.wasCancelled) {
let index = this.checkboxes.findIndex(element => element.checkUID === checkData.checkUID);
this.checkboxes.splice(index, 1);
this.connect.deleteCheck(checkData.checkUID);
}
});
}
开发者ID:yordan-milkov,项目名称:TaskBo-rd,代码行数:12,代码来源:editTask.ts
示例5: edit
edit(phase:JobPhase) {
this.dialogService.open({ viewModel: EditJobPhase, model: phase })
.whenClosed(result => {
if(result.wasCancelled) return;
const message = result.output ? 'Phase saved successfully' : 'Phase deleted successfully';
Notifications.success(message);
this.refresh();
})
.catch(Notifications.error);
}
开发者ID:Resounding,项目名称:Jobs-Web,代码行数:12,代码来源:list.ts
示例6: judge
judge(report:Report) {
this.dialogService.open({viewModel: ReportJudge, model: report}).then(response => {
if (!response.wasCancelled) {
const data = response.output;
this.reportService.judgeReport(report.id, data.status.text, data.date)
.then(result => {
this.reports = this.reports.map(current => current.id == report.id ? result : current);
}, error => alert(error));
}
})
}
开发者ID:m4riusz,项目名称:Twitter,代码行数:12,代码来源:court.ts
示例7: removeUser
removeUser(userName: any)
{
this.dlg.open({ viewModel: Confirm, model: 'Do you want to remove this user from the group: ' + userName.name })
.whenClosed(response =>
{
if (!response.wasCancelled) {
let index = this.groupUsers.findIndex(element => element === userName);
let key = this.groupUsers[index].UID;
if ( this.modifyUsers.get( key ) === 1 )
{
this.modifyUsers.set( key, 2 );
}
else
{
this.modifyUsers.set( key, 0 );
}
this.groupUsers.splice(index, 1);
}
});
}
开发者ID:yordan-milkov,项目名称:TaskBo-rd,代码行数:20,代码来源:addEditGroup.ts
示例8: alert
this.checkServer(env.fhir.server_url).then(valid => {
if (valid) {
this.fhir.init(env.fhir.server_url);
} else {
this.dialog
.open({
model: { url: env.fhir ? env.fhir.server_url || "" : "" },
viewModel: SelectServer
})
.whenClosed(async response => {
if (response.wasCancelled) {
alert("Keine Server Verbindung");
delete env.fhir.server_url;
return;
} else {
env.fhir.server_url = response.output;
this.login();
}
});
}
});
开发者ID:rgwch,项目名称:webelexis,代码行数:21,代码来源:fhir-login.ts
示例9: showMessage
showMessage(message: string, title : string = 'Message', options = ['Ok']) {
return this.dialogService.open({ viewModel: MessageBox, model: { message, title, options } });
}
开发者ID:tibor19,项目名称:NotesApp,代码行数:3,代码来源:common-dialogs.ts
示例10: editConnection
editConnection(connection) {
this.dialogService.open({ viewModel: EditConnection, model: connection })
.then(result => {
if(result.output) this.saveConnection(result.output)
});
}
开发者ID:bfil,项目名称:exar-db,代码行数:6,代码来源:manage-connections.ts
注:本文中的aurelia-dialog.DialogService类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论