35
edits
PaulMorris (talk | contribs) (added button json code for preferences in builder) |
Gregg.lind (talk | contribs) (→Building a UI: fixed dead links) |
||
| Line 105: | Line 105: | ||
'''How can I make a Widget look and behave differently in different windows? ''' | '''How can I make a Widget look and behave differently in different windows? ''' | ||
Use a [https://addons.mozilla.org/en-US/developers/docs/sdk/latest/packages/addon-kit | Use a [https://addons.mozilla.org/en-US/developers/docs/sdk/latest/packages/addon-kit/widget.html#WidgetView <code>WidgetView</code>]. | ||
'''How can I have a Preferences UI/Options UI for my add-on? ''' | '''How can I have a Preferences UI/Options UI for my add-on? ''' | ||
The [https://addons.mozilla.org/en-US/developers/docs/sdk/latest/packages/addon-kit | The [https://addons.mozilla.org/en-US/developers/docs/sdk/latest/packages/addon-kit/simple-prefs.html <code>simple-prefs</code>] module offers basic support for preferences. | ||
'''Why can't I create Firefox toolbars using the Add-on SDK / Add-on Builder? ''' | '''Why can't I create Firefox toolbars using the Add-on SDK / Add-on Builder? ''' | ||
| Line 115: | Line 115: | ||
In the past, we haven't provided much guidance to add-on developers about how best to integrate their user interfaces into Firefox, and the add-ons manager did not make it easy for users to access an add-on's preferences. The result of this has been a proliferation of toolbars and menu items, which can lead to a cluttered and confusing user experience. | In the past, we haven't provided much guidance to add-on developers about how best to integrate their user interfaces into Firefox, and the add-ons manager did not make it easy for users to access an add-on's preferences. The result of this has been a proliferation of toolbars and menu items, which can lead to a cluttered and confusing user experience. | ||
Therefore in the Add-on SDK and Add-on Builder, the preferred way for add-ons to expose a permanent user interface is through the [https://addons.mozilla.org/en-US/developers/docs/sdk/latest/packages/addon-kit | Therefore in the Add-on SDK and Add-on Builder, the preferred way for add-ons to expose a permanent user interface is through the [https://addons.mozilla.org/en-US/developers/docs/sdk/latest/packages/addon-kit/widget.html <code>widget</code>] API, which will ensure that the user interfaces for all add-ons default to a standard location (the add-on bar) where users will expect to see them. | ||
'''Can I add items to Firefox's menus in my add-on? ''' | '''Can I add items to Firefox's menus in my add-on? ''' | ||
edits