How do I hide the Titlebar of a sidebar in the Firefox Add-on SDK?
I created a simple sidebar using: ui/sidebar
, but I want to hide the titlebar. Is there any way to get rid of this?
On WebAPI I saw is possible, but in Firefox SDK, I didn't see any information.
Here is the code in order to create the Sidebar:
//Sidebar
var sidebar = require("sdk/ui/sidebar").Sidebar({
id: 'sidebar',
title: 'Sidebar',
url: require("sdk/self").data.url("sidebar.html"),
onAttach: function(worker) {
//
},
onShow: function() {
console.log("showing");
},
onHide: function() {
console.log("hiding");
},
onDetach: function() {
console.log("detaching");
}
});