您知道保存文档时弹出的小消息气球吗?我想在我的自定义部分中展示这一点。我发现我可以让我的页面继承 UmbracoEnsuredPage 并使用 ClientTools.ShowSpeechBubble。问题是我需要能够从客户端的 javascript 显示它。
有人知道怎么做吗?
最佳答案
umbraco 论坛上的 Lee Kelleher 能够回答这个问题。 http://our.umbraco.org/forum/developers/api-questions/19190-Custom-save-message-balloon-from-javascript
这是代码
UmbClientMgr.mainWindow().UmbSpeechBubble.ShowMessage('info', 'This is the header', 'This is the body text.');
关于javascript - 如何在 umbraco 中通过 javascript 呈现自定义保存消息气球,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5556429/