如何在umbraco中从javascript呈现自定义保存消息气球

时间:2011-04-05 18:10:28

标签: javascript umbraco

您知道保存文档时弹出的小消息气球吗?我想在我的自定义部分中显示。我看到我可以让我的页面继承自UmbracoEnsuredPage并使用ClientTools.ShowSpeechBubble。问题是我需要能够在客户端从javascript中显示它。

任何人都知道怎么做?

1 个答案:

答案 0 :(得分:2)

Lee Kelleher在umbraco的论坛上能够回答这个问题。 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.');