本文整理汇总了TypeScript中ngx-prx-styleguide.ModalService.confirm方法的典型用法代码示例。如果您正苦于以下问题:TypeScript ModalService.confirm方法的具体用法?TypeScript ModalService.confirm怎么用?TypeScript ModalService.confirm使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ngx-prx-styleguide.ModalService
的用法示例。
在下文中一共展示了ModalService.confirm方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: confirmRemoveFile
confirmRemoveFile() {
if (this.hasStories() && !this.file.isNew) {
let confirmMsg = `Are you sure you want to remove the ${this.file.label} segment?
This change could affect your already published episodes.`;
this.modal.confirm('', confirmMsg, (confirm) => {
if (confirm) {
this.removeFile();
}
});
} else {
this.removeFile();
}
}
示例2: confirmRemoveVersion
confirmRemoveVersion(version: AudioVersionTemplateModel) {
if (this.hasStories() && !version.isNew) {
let confirmMsg = `Are you sure you want to remove the ${version.label} template?
This change could affect your already published episodes.`;
this.modal.confirm('', confirmMsg, (confirm) => {
if (confirm) {
this.removeVersion(version);
}
});
} else {
this.removeVersion(version);
}
}
示例3: confirmAddFile
confirmAddFile(event: MouseEvent, version: AudioVersionTemplateModel) {
if (event.target['blur']) {
event.target['blur']();
}
if (this.hasStories() && !version.isNew) {
let confirmMsg = `Are you sure you want to add a segment to your ${version.label} template?
This change could invalidate your already published episodes.`;
this.modal.confirm('', confirmMsg, (confirm) => {
if (confirm) {
this.addFile(version);
}
});
} else {
this.addFile(version);
}
}