-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add documentation for spaces API, sessions API and new menu typed act…
…ion buttons
- Loading branch information
Showing
11 changed files
with
618 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
======== | ||
sessions | ||
======== | ||
|
||
The sessions API first appeared in Thunderbird 115. It allows to add tab related session data to Thunderbird's tabs, which will be restored on app restart. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
====== | ||
spaces | ||
====== | ||
|
||
The spaces API first appeared in Thunderbird 115. It allows to manage built-in and custom spaces, and to add buttons for custom spaces to Thunderbird's spaces toolbar. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
.. _sessions_api: | ||
|
||
======== | ||
sessions | ||
======== | ||
|
||
The sessions API first appeared in Thunderbird 115. It allows to add tab related session data to Thunderbird's tabs, which will be restored on app restart. | ||
|
||
.. role:: permission | ||
|
||
.. role:: value | ||
|
||
.. role:: code | ||
|
||
.. rst-class:: api-main-section | ||
|
||
Functions | ||
========= | ||
|
||
.. _sessions.setTabValue: | ||
|
||
setTabValue(tabId, key, value) | ||
------------------------------ | ||
|
||
.. api-section-annotation-hack:: | ||
|
||
Store a key/value pair associated with a given tab. | ||
|
||
.. api-header:: | ||
:label: Parameters | ||
|
||
|
||
.. api-member:: | ||
:name: ``tabId`` | ||
:type: (integer) | ||
|
||
ID of the tab with which you want to associate the data. Error is thrown if ID is invalid. | ||
|
||
|
||
.. api-member:: | ||
:name: ``key`` | ||
:type: (string) | ||
|
||
Key that you can later use to retrieve this particular data value. | ||
|
||
|
||
.. api-member:: | ||
:name: ``value`` | ||
:type: (string) | ||
|
||
|
||
.. _sessions.getTabValue: | ||
|
||
getTabValue(tabId, key) | ||
----------------------- | ||
|
||
.. api-section-annotation-hack:: | ||
|
||
Retrieve a previously stored value for a given tab, given its key. | ||
|
||
.. api-header:: | ||
:label: Parameters | ||
|
||
|
||
.. api-member:: | ||
:name: ``tabId`` | ||
:type: (integer) | ||
|
||
ID of the tab whose data you are trying to retrieve. Error is thrown if ID is invalid. | ||
|
||
|
||
.. api-member:: | ||
:name: ``key`` | ||
:type: (string) | ||
|
||
Key identifying the particular value to retrieve. | ||
|
||
|
||
.. api-header:: | ||
:label: Return type (`Promise`_) | ||
|
||
|
||
.. api-member:: | ||
:type: string | ||
|
||
|
||
.. _Promise: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise | ||
|
||
.. _sessions.removeTabValue: | ||
|
||
removeTabValue(tabId, key) | ||
-------------------------- | ||
|
||
.. api-section-annotation-hack:: | ||
|
||
Remove a key/value pair from a given tab. | ||
|
||
.. api-header:: | ||
:label: Parameters | ||
|
||
|
||
.. api-member:: | ||
:name: ``tabId`` | ||
:type: (integer) | ||
|
||
ID of the tab whose data you are trying to remove. Error is thrown if ID is invalid. | ||
|
||
|
||
.. api-member:: | ||
:name: ``key`` | ||
:type: (string) | ||
|
||
Key identifying the particular value to remove. | ||
|
Oops, something went wrong.