canmove, Confirmed users
737
edits
(→class) |
(→class) |
||
Line 179: | Line 179: | ||
<api name="Widget"> | <api name="Widget"> | ||
@constructor | @constructor | ||
Creates a new widget. The widget is immediately added to the add-on bar. | Creates a new widget. The widget is immediately added to the add-on bar. | ||
</api> | </api> | ||
<api name="destroy"> | <api name="destroy"> | ||
@method | @method | ||
Removes the widget from the add-on bar. | Removes the widget from the add-on bar. | ||
</api> | </api> | ||
<api name="width"> | <api name="width"> | ||
@property {number} | @property {number} | ||
The widget's width in pixels. Setting it updates the widget's appearance | The widget's width in pixels. Setting it updates the widget's appearance | ||
immediately. | immediately. | ||
</api> | </api> | ||
<api name="mouseover"> | <api name="mouseover"> | ||
@event | @event | ||
This event is emitted when the user moves the mouse over the widget. | This event is emitted when the user moves the mouse over the widget. | ||
</api> | </api> | ||