canmove, Confirmed users
737
edits
No edit summary |
|||
Line 46: | Line 46: | ||
<api name="postMessage"> | <api name="postMessage"> | ||
@function | @function | ||
Use this function to send a message | Use this function to send a message | ||
to any [content scripts](/link/to/doc.html). | to any [content scripts](/link/to/doc.html). | ||
</api> | </api> | ||
<api name="open"> | <api name="open"> | ||
@event | @event | ||
This event is generated when the | This event is generated when the | ||
corresponding `tab` object is opened. | corresponding `tab` object is opened. | ||
</api> | </api> | ||
Line 62: | Line 66: | ||
<api name="panel"> | <api name="panel"> | ||
@class | @class | ||
... | ... | ||
Line 68: | Line 73: | ||
... | ... | ||
</api> | </api> | ||
</api> | </api> | ||
Line 84: | Line 90: | ||
<api name="alert"> | <api name="alert"> | ||
@method | @method | ||
Displays an alert message. | Displays an alert message. | ||
Line 91: | Line 98: | ||
@param anotherparam {bool} | @param anotherparam {bool} | ||
Another | Another parameter. | ||
</api> | </api> | ||
Line 98: | Line 105: | ||
<api name="alert"> | <api name="alert"> | ||
@method | @method | ||
Displays an alert message. | Displays an alert message. | ||
Line 103: | Line 111: | ||
@param [alerttext] {string} | @param [alerttext] {string} | ||
The string to display. | The string to display. | ||
</api> | |||
If the parameter has a default value, then the name is followed by "=" and then the default value: | If the parameter has a default value, then the name is followed by "=" and then the default value: | ||
<api name="alert"> | <api name="alert"> | ||
@method | @method | ||
Displays an alert message. | Displays an alert message. | ||
@param [anotherparam=false] {bool} | @param [anotherparam=false] {bool} | ||
Some boolean or other. | |||
</api> | |||
Parameters can contain properties of their own. In this case the properties are listed after the parameter description, using a line which: | Parameters can contain properties of their own. In this case the properties are listed after the parameter description, using a line which: | ||
Line 132: | Line 145: | ||
@prop [onOpen] {function} | @prop [onOpen] {function} | ||
A callback function that is called when the window has opened. | A callback function that is called when the window has opened. | ||
</api> | |||
==== Return values ==== | ==== Return values ==== | ||
Line 155: | Line 170: | ||
<api name="label"> | <api name="label"> | ||
@property {string} | @property {string} | ||
The widget's label. Read-only. | The widget's label. Read-only. | ||
</api> | </api> | ||
Line 166: | Line 183: | ||
<api name="complete"> | <api name="complete"> | ||
@event | @event | ||