Change Firefox Add-on SDK sidebar to a tab or window

36 views Asked by At

I need help with Firefox plugin sidebar: sdk/ui/sidebar

var sidebars = require("sdk/ui/sidebar"),
    ...

    var orderSidebar = sidebars.Sidebar({
  id: "order-sidebar",
  title: "clix Sidebar",
  url: self.data.url("html/order-sidebar.html"),
  onHide: function () {
    mainToggleButton.setToggle(false);
  }
});

orderSidebar.on("ready", function (worker) {
  worker.port.on("orderClicked", handleOrderClicked);
  worker.port.emit("orderArrival", orderData);
  orderSidebarWorker = worker;
});

The Firefox add-on shows as a sidebar, but I want to make it show in a tab or window.

I want to change the ui/sidebar command to a window or tab by that making the plugin.

0

There are 0 answers