本文整理汇总了TypeScript中aurelia-materialize-bridge.MdToastService.show方法的典型用法代码示例。如果您正苦于以下问题:TypeScript MdToastService.show方法的具体用法?TypeScript MdToastService.show怎么用?TypeScript MdToastService.show使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类aurelia-materialize-bridge.MdToastService
的用法示例。
在下文中一共展示了MdToastService.show方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: agree
agree(e) {
this.toast.show("You agreed!", 4000);
}
示例2: showDefaultToast
showDefaultToast() {
this.toast.show("I am a toast!", 4000);
}
示例3: showToast
showToast(e) {
this.toast.show(`You clicked ${e.target.innerText}`, 4000);
}
示例4:
this.toast.show("When finished, I trigger another toast.", 2000).then(() => {
this.toast.show("I am a toast called by a callback of another toast!", 2000);
});
示例5: showStyledToast
showStyledToast() {
this.toast.show("I've got style!", 4000, "rounded blue");
}
示例6: collapsibleOpen
collapsibleOpen(targetElement) {
targetElement.openCount = (targetElement.openCount || 0) + 1;
this.toastService.show("Open Callback Received!", 1000);
}
示例7: collapsibleClose
collapsibleClose(targetElement) {
targetElement.closeCount = (targetElement.closeCount || 0) + 1;
this.toastService.show("Close Callback Received!", 1000);
}
示例8: editClicked
editClicked() {
this.toast.show("edit button clicked");
}