mozilla

Compare Revisions

Adding preferences to an extension

Change Revisions

Revision 31603:

Revision 31603 by kmaglione on

Revision 31604:

Revision 31604 by mattflaschen on

Title:
Adding preferences to an extension
Adding preferences to an extension
Slug:
Adding_preferences_to_an_extension
Adding_preferences_to_an_extension
Tags:
Extensions, Add-ons, XUL, "Preferences system"
Extensions, Add-ons, XUL, "Preferences system"
Content:

Revision 31603
Revision 31604
n25      Also, for reference, you may want to take a look at <a hrefn25      Also, for reference, you may want to take a look at <a href
>="/en/Preferences/Preferences_system" title="en/Preferences_Syste>="/en/Mozilla/Preferences/Preferences_system" title="en/Preferenc
>m">Preferences System</a> and the <a href="/en/Preferences_API" t>es_System">Preferences System</a> and the <a href="/en/Preference
>itle="en/Preferences_API">Preferences API</a>.>s_API" title="en/Preferences_API">Preferences API</a>.
n27    <h2 name="Download_the_sample">n27    <h2 id="Download_the_sample" name="Download_the_sample">
n34    <h2 name="Update_the_manifests">n34    <h2 id="Update_the_manifests" name="Update_the_manifests">
n51    <h3 name="Establish_the_defaults">n51    <h3 id="Establish_the_defaults" name="Establish_the_defaults"
 >>
n60    <h2 name="The_JavaScript_code">n60    <h2 id="The_JavaScript_code" name="The_JavaScript_code">
n70    <h3 name="startup.28.29">n70    <h3 id="startup.28.29" name="startup.28.29">
n132    <h3 name="shutdown.28.29">n132    <h3 id="shutdown.28.29" name="shutdown.28.29">
n143    <h3 name="observe.28.29">n143    <h3 id="observe.28.29" name="observe.28.29">
n177    <h3 name="watchStock.28.29">n177    <h3 id="watchStock.28.29" name="watchStock.28.29">
n194    <h3 name="refreshInformation.28.29">n194    <h3 id="refreshInformation.28.29" name="refreshInformation.28
 >.29">
n244    <h3 name="Installing_the_event_listeners">n244    <h3 id="Installing_the_event_listeners" name="Installing_the_
 >event_listeners">
n254    <h2 name="Design_the_preference_dialog">n254    <h2 id="Design_the_preference_dialog" name="Design_the_prefer
 >ence_dialog">
n295      You could use <a href="/en/Extensions/Inline_Options" titlen295      You could use <a href="/en/Extensions/Inline_Options" title
>="https://developer.mozilla.org/en/Extensions/Inline_Options">Inl>="https://developer.mozilla.org/en/Extensions/Inline_Options">Inl
>ine Options</a> for this preference. Your <code>options.xul</code>ine Options</a> for this preference.&nbsp; You must set <code>em:
>> file would look like this:>optionsType</code> to 2 in your install.rdf. Your <code>options.x
 >ul</code> file would look like this:
t303    <h2 name="Adding_the_context_menu">t303    <h2 id="Adding_the_context_menu" name="Adding_the_context_men
 >u">

Back to History