Panorama:TabGroupsAPI

From MozillaWiki
Revision as of 11:09, 4 September 2011 by Ttaubert (talk | contribs) (→‎Schema)
Jump to navigation Jump to search

Schema

Compatibility

Example

{
  windows: [
    { tabs: [{ url: "about:blank#1" }] },
    { tabs: [{ url: "about:blank#2" }], type: "set", extData: { panorama: "{bounds: {width: 200, height: 200}}" } }
  ],
  closedWindows: [ { tabs: [{ url: "about:blank#3" }], type: "set" } ]
}

API Description

TabGroups
  [Methods]
    createGroup(DOMWindow aWindow)
    getGroups()
    getGroupsByWindow(DOMWindow aWindow)

TabGroup
  [Properties]
    id : string
    title : string
    tabs : xulTab[]
    storage : object

  [Methods]
    addTab(xulTab aTab)
    removeTab(xulTab aTab)
    close()