开发者

How to present a custom save message balloon from javascript in umbraco

开发者 https://www.devze.com 2023-02-22 19:59 出处:网络
You know that little message balloon that pops up when you save a document?I want to show that in my custom section.I see that I can make my page inherit from UmbracoEnsuredPage and use Clie开发者_如何

You know that little message balloon that pops up when you save a document? I want to show that in my custom section. I see that I can make my page inherit from UmbracoEnsuredPage and use Clie开发者_如何学编程ntTools.ShowSpeechBubble. The problem is that I need to be able to display it from javascript on the client side.

Anyone know how to do that?


Lee Kelleher over at umbraco's forum was able to answer this. http://our.umbraco.org/forum/developers/api-questions/19190-Custom-save-message-balloon-from-javascript

Here is the code

UmbClientMgr.mainWindow().UmbSpeechBubble.ShowMessage('info', 'This is the header', 'This is the body text.');
0

精彩评论

暂无评论...
验证码 换一张
取 消