Plugin Developer DiscussionDiscussion for FogBugz Plugin developers |
||
Is there an approved way to create a FogBugz-style JS popup from the API? If not, can you provide some guidance on how to use theMgr.showPopup()?
I saw the static methids on CEditableTable but they seem to be specific to pop-ups from within a table only. It's not clear from the documentation if this can be used outside a table. Thanks, Sam
I don't think we've written any examples for it yet, but if you look in \Website\api.js you'll find the (still very small) JS API methods.
For popups, you would do something like this: var popup = api.PopupManager.newPopup("mypopup"); popup.setHtml("<h1>Hello, world!</h1>" popup.showPopup(); showPopup takes an optional DOM element to position the popup above. |
Powered by FogBugz