{"json_modified": "2016-03-28T07:49:49.634654", "uuid": "100a631d-750f-4531-969b-76e197b7b52a", "title": "Adding preferences to an extension", "url": "/en-US/docs/Adding_preferences_to_an_extension", "tags": ["Extensions", "Add-ons", "add-ons", "XUL", "Preferences system"], "translations": [{"uuid": "5a849fa6-66f6-4da8-8665-11c958d233b3", "title": "A\u00f1adir preferencias a una extensi\u00f3n", "url": "/es/docs/A%C3%B1adir_preferencias_a_una_extensi%C3%B3n", "tags": ["extensiones", "Sistema_de_preferencias", "XUL", "Extensiones", "Complementos", "Todas_las_Categor\u00edas"], "summary": "Este art\u00edculo es una vuelta de tuerca m\u00e1s al ejemplo mostrado en Crear una extensi\u00f3n din\u00e1mica en la barra de estado que le a\u00f1ade un men\u00fa emergente que te permite alternar entre m\u00faltiples stocks para visualizar. Tambi\u00e9n a\u00f1ade un di\u00e1logo de preferencias que te permite cambiar a un stock diferente a aquellos incluidos en el men\u00fa emergente.", "localization_tags": [], "locale": "es", "last_edit": "2015-09-21T13:47:50", "review_tags": []}, {"uuid": "39f14371-1558-446f-b9e0-10e03fb6e880", "title": "Dodawanie preferencji do rozszerzenia", "url": "/pl/docs/Dodawanie_preferencji_do_rozszerzenia", "tags": ["Dodatki", "Rozszerzenia", "XUL", "System_preferencji", "Strony_wymagaj\u0105ce_dopracowania", "Wszystkie_kategorie"], "summary": "As before, concepts covered in the previous articles in this series won't be rehashed here, so if you haven't already seen them:", "localization_tags": ["inprogress"], "locale": "pl", "last_edit": "2014-05-29T09:34:11", "review_tags": []}], "modified": "2015-10-21T10:34:22", "label": "Adding preferences to an extension", "localization_tags": [], "locale": "en-US", "id": 1892, "last_edit": "2015-10-21T10:34:20", "summary": "This article takes the Creating a dynamic status bar extension sample to the next level, adding a popup menu that lets you quickly switch between multiple stocks to watch. It also adds a preference dialog that lets you switch to a stock other than one of the ones included in the popup menu.", "sections": [{"id": "Download_the_sample", "title": "Download the sample"}, {"id": "Update_the_manifests", "title": "Update the manifests"}, {"id": "Establish_the_defaults", "title": "Establish the defaults"}, {"id": "The_JavaScript_code", "title": "The JavaScript code"}, {"id": "startup()", "title": "startup()"}, {"id": "shutdown()", "title": "shutdown()"}, {"id": "observe()", "title": "observe()"}, {"id": "watchStock()", "title": "watchStock()"}, {"id": "refreshInformation()", "title": "refreshInformation()"}, {"id": "Installing_the_event_listeners", "title": "Installing the event listeners"}, {"id": "Design_the_preference_dialog", "title": "Design the preference dialog"}, {"id": "Alternative_method_Inline_Options", "title": "Alternative method: Inline Options"}, {"id": "Adding_the_context_menu", "title": "Adding the context menu"}, {"id": "Resources", "title": null}, {"id": "See_also", "title": "See also"}], "slug": "Adding_preferences_to_an_extension", "review_tags": ["technical"]}