Reputation: 810
I recently use the SDK of mozilla to developp an add-on. But when I tested it, I found that the add-on icon is in the add-on bar.
I wanna to move it on the nav-bar at the installation. How can I do that ?
Upvotes: 1
Views: 544
Reputation: 810
To resolve the problem. I use a part of the code in toolbarbutton.
You just need replace in toolbarbutton.js the line 73
($("navigator-toolbox") || $("mail-toolbox")).palette.appendChild(tbb);
by this code window.document.getElementById('nav-bar').appendChild(tbb)
.
Now the toolbarbutton is placed on the right of the nav-bar.
Here you can find the code example used.
Upvotes: 1
Reputation: 16558
If you use this toolbarbutton module then you can move the button by setting the toolbarID.
I don't think it's possible to move a widget at the moment.
Upvotes: 1