本文整理汇总了TypeScript中toastr.success函数的典型用法代码示例。如果您正苦于以下问题:TypeScript success函数的具体用法?TypeScript success怎么用?TypeScript success使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了success函数的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的TypeScript代码示例。
示例1: showUINotificationInfo
function showUINotificationInfo(uiNotificationInfo: UINotificationInfo) {
if (uiNotificationInfo.succeeded) {
toastr.success(uiNotificationInfo.successMessage);
} else {
toastr.error(uiNotificationInfo.errorMessage);
}
}
开发者ID:Lemoncode,项目名称:react-typescript-samples,代码行数:7,代码来源:uiNotificationMware.ts
示例2: switch
this.toastsPromise.then((toasts: IToast[]) => {
for (let t of toasts){
//Setup callbacks to track dismisal status
let overrides: ToastrOptions = {
onclick: () => {
ToastService.acknowledgeToast(t.Id, this.context.pageContext.web.id);
},
onCloseClick: () => {
ToastService.acknowledgeToast(t.Id, this.context.pageContext.web.id);
}
};
switch (t.Severity){
case 'Warning':
toastr.warning(t.Message, t.Title, overrides);
break;
case 'Error':
toastr.error(t.Message, t.Title, overrides);
break;
case 'Success':
toastr.success(t.Message, t.Title, overrides);
break;
default:
toastr.info(t.Message, t.Title, overrides);
break;
}
}
}).catch((error: any): void => {
开发者ID:AdrianDiaz81,项目名称:sp-dev-fx-extensions,代码行数:28,代码来源:SpfxToastrApplicationCustomizer.ts
示例3: stopTimer
stopTimer(valid?: boolean): void {
if (this.proccessing) {
console.log('Stop Timer');
if (valid) {
this.endTime = lodash.now();
this.textFinished = this.text;
this.textMissed = null;
toastr.success('PERFECT! ' + this.result + '\nLet\'s watch True-time Replay.'); // alert('COMPLETED! ' + this.result + "\nLet's watch True-time Replay.");
this.startTruetimeReplay();
} else {
this.textMissed = this.text;
}
this.text = null;
this.proccessing = false;
}
}
开发者ID:ovrmrw,项目名称:shuttle-store-sample,代码行数:16,代码来源:page4.component.ts
示例4: showSuccessToast
public static showSuccessToast(title: string, details: string, duration: number = 1000) {
Notifications.setupToastrOptions(duration, true);
toastr.success(details, title);
}
开发者ID:sumitkm,项目名称:sumitmaitra.com,代码行数:4,代码来源:st-notifications.ts
示例5:
this.busyHandler.handle(obs$).subscribe((result:AuthenticationResult) => {
window.localStorage.setItem(LOCALSTORAGE_AUTH, JSON.stringify(result));
this.store.dispatch({type: DATA_AUTHENTICATION_SET_AUTHENTICATION, payload: result});
toastr.success("successfully logged in!");
}, (errorResponse:Response) => {
开发者ID:kurtdevocht,项目名称:winecellar,代码行数:5,代码来源:authentication.service.ts
示例6:
this.busyHandlerService.handle(obs$).map(resp => resp.json()).subscribe((result: AuthenticationResult) => {
window.localStorage.setItem(LOCALSTORAGE_AUTH, JSON.stringify(result));
this.store.dispatch(setAuthentication(result));
toastr.success("successfully logged in!");
}, (errorResponse: Response) => {
开发者ID:appcoreopc,项目名称:winecellar,代码行数:5,代码来源:authentication.service.ts
示例7:
return this.http.delete(`/api/schedulers/${this.schedulerName}/calendars/${this.name}`).then(() => {
toastr.success(`Calendar ${this.name} deleted successfully`);
return this.router.navigate("calendars");
});
开发者ID:Indifer,项目名称:quartznet,代码行数:4,代码来源:calendar-details.ts
示例8: activate
activate()
{
toastr.success('tets')
}
开发者ID:GooRiOn,项目名称:AwesomeCalendar,代码行数:4,代码来源:register.ts
示例9: showSuccess
export function showSuccess(message) {
toastr.success(message);
}
开发者ID:DavidOnGitHub,项目名称:questionApp_front,代码行数:3,代码来源:noticeUtils.ts
示例10:
.subscribe(() => {
toastr.success('Successfully updated.');
}, this.handleError);
开发者ID:Angular-Reference,项目名称:angular2-app,代码行数:3,代码来源:user-edit.component.ts
注:本文中的toastr.success函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论