1

1

I am writing a plugin that adds a link to bug screens using the IPluginBugDisplay interface. I also want to display an info box when the user hovers over the field, much like the bug summary that gets displayed using FogBugz.UI.BugDisplay.Link.

I know that FB does not offer a JavaScript API (yet). Is there any javascript function I can reuse from FB to position, display, and hide such an info box? I had a look inside bugitem.js, bugedit.js, and another few files but could not really find anything.

flag

1 Answer

1

I have found what I was looking for in api.js. The api.Popup class does exactly what I need:

var p = new api.Popup("myPopup");
p.setHtml("<div>This is a new info popup</div>");
p.showPopup();  // Displays the popup at the center of the viewport
link|flag

Your Answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.