本文整理汇总了TypeScript中@eg/share/string/string.component.StringComponent类的典型用法代码示例。如果您正苦于以下问题:TypeScript component.StringComponent类的具体用法?TypeScript component.StringComponent怎么用?TypeScript component.StringComponent使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了component.StringComponent类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的TypeScript代码示例。
示例1:
).toPromise().then(async(result) => {
if (Number(result) === 1) {
this.numSucceeded++;
this.toast.success(await this.successMsg.current());
} else {
this.numFailed++;
console.error('Retarget Failed', this.evt.parse(result));
this.toast.warning(await this.errorMsg.current());
}
});
开发者ID:StephenGWills,项目名称:Evergreen,代码行数:10,代码来源:transfer-dialog.component.ts
示例2: async
async(result) => {
if (Number(result) === 1) {
this.numSucceeded++;
this.toast.success(await this.successMsg.current());
} else {
this.numFailed++;
console.error(this.evt.parse(result));
this.toast.warning(await this.errorMsg.current());
}
this.cancelNext(ids);
}
开发者ID:StephenGWills,项目名称:Evergreen,代码行数:11,代码来源:cancel-dialog.component.ts
示例3:
).toPromise().then(async(result) => {
if (Number(result) === 1) {
this.numSucceeded++;
this.toast.success(await this.successMsg.current());
} else {
this.numFailed++;
console.error('Mark missing failed ', this.evt.parse(result));
this.toast.warning(await this.errorMsg.current());
}
return this.markOneItemMissing(ids);
});
开发者ID:StephenGWills,项目名称:Evergreen,代码行数:11,代码来源:mark-missing-dialog.component.ts
示例4: open
async open(args: NgbModalOptions): Promise<boolean> {
this.holdIds = [].concat(this.holdIds); // array-ify ints
this.transferTarget =
this.store.getLocalItem('eg.circ.hold.title_transfer_target');
if (!this.transferTarget) {
this.toast.warning(await this.targetNeeded.current());
return Promise.reject('Transfer Target Required');
}
return super.open(args);
}
开发者ID:StephenGWills,项目名称:Evergreen,代码行数:13,代码来源:transfer-dialog.component.ts
示例5:
result => {
console.debug('Mark damaged returned', result);
if (Number(result) === 1) {
this.successMsg.current().then(msg => this.toast.success(msg));
this.close(true);
return;
}
const evt = this.evt.parse(result);
if (evt.textcode === 'DAMAGE_CHARGE') {
// More info needed from staff on how to hangle charges.
this.chargeResponse = evt.payload;
this.newCharge = this.chargeResponse.charge;
}
},
开发者ID:StephenGWills,项目名称:Evergreen,代码行数:17,代码来源:mark-damaged-dialog.component.ts
示例6: setTimeout
setTimeout(() => {
this.titleString.current({pfx: this.pfx, sfx: this.sfx})
.then(txt => this.title.setTitle(txt));
});
开发者ID:StephenGWills,项目名称:Evergreen,代码行数:4,代码来源:title.component.ts
注:本文中的@eg/share/string/string.component.StringComponent类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论