42
edits
Raymondlee (talk | contribs) m (→Schema) |
Raymondlee (talk | contribs) |
||
| 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 : string | ||
title : string | title : string | ||
tabs : xulTab[] | tabs : xulTab[] | ||
storage : object | storage : object | ||
[Methods] | [Methods] | ||
edits