本文整理汇总了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());
}
});
示例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);
}
示例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);
});
示例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);
}
示例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;
}
},
示例6: setTimeout
setTimeout(() => {
this.titleString.current({pfx: this.pfx, sfx: this.sfx})
.then(txt => this.title.setTitle(txt));
});