Panorama:TabGroupsAPI: Difference between revisions

Jump to navigation Jump to search
m
Line 37: Line 37:
=== Tree Style Tabs ===
=== Tree Style Tabs ===


= API Description =
= API Description =


<pre>
To use the TabGroups API, you first need to import the code module into your JavaScript scope:
TabGroups
<pre>Components.utils.import("resource:///modules/TabGroups.jsm");
</pre>
Then you can obtain reference to it by simply accessing them from the TabGroups object exported by the code module. For example:
<pre>let allGroups = TabGroups.getGroups(); 
</pre>
'''Provided objects and methods'''
<pre>TabGroups
   [Methods]
   [Methods]
     createGroup(DOMWindow aWindow)
     createGroup(DOMWindow aWindow)
Line 54: Line 60:
TabGroup
TabGroup
   [Properties]
   [Properties]
     id : string
     id&nbsp;: string
     title : string
     title&nbsp;: string
     tabs : xulTab[]
     tabs&nbsp;: xulTab[]
     storage : object
     storage&nbsp;: object


   [Methods]
   [Methods]
42

edits

Navigation menu