Panorama:TabGroupsAPI: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
(Created page with "= Schema = <pre> { windows: [ { tabs: [{ url: "about:blank#1" }] }, { tabs: [{ url: "about:blank#2" }], type: "set", extData: { panorama: "{bounds: {width: 200, height...")
 
Line 1: Line 1:
= Schema =
= Schema =
== Compatibility ==
== Example ==


<pre>
<pre>

Revision as of 11:09, 4 September 2011

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()