Panel Tips

It seems that the tooltips that you get from the title="test" attribute do not appear inside the panel.

Also tested with stackoverflow loaded in the panel , without prompts when you hover over a hot, week, month. But custom tooltips work, for example. when you hover over tags.

Is there a way to enable tooltips in the SDK Add-on panels, or is the only way to make custom tooltips?

+6
source share
2 answers

No, displaying tooltips for HTML elements requires special code in the browser . This code exists for the embedded browser, but not for the browser that the SDK embeds in the panel. This is what it might be worth recording as an SDK error, but in the meantime - customizable prompts are the way to go.

+4
source

Yes, there is a way. This works with Firefox 31

 var panel = require("sdk/panel").Panel({ width: 400, height: 400, contentURL: "http://stackoverflow.com/", }); panel.show(); require('sdk/view/core').getActiveView(panel) .setAttribute('tooltip', 'aHTMLTooltip'); 
+2
source

Source: https://habr.com/ru/post/916162/


All Articles