Plugin Developer Discussion

Discussion for FogBugz Plugin developers

Display js popup through API?

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.


Samuel Neff Send private email
Tuesday, October 20, 2009
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>"

showPopup takes an optional DOM element to position the popup above.
David Fullerton Send private email
Wednesday, October 21, 2009
Samuel Neff Send private email
Wednesday, October 21, 2009

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics
Powered by FogBugz