Preferences bindings: Difference between revisions

From MozillaZine Knowledge Base
Jump to navigationJump to search
mNo edit summary
(change from obsolete to redirect)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
: ''This page is being migrated to [http://developer-test.mozilla.org/en/docs/Preferences_System Devmo].''
Information from this page and [http://forums.mozillazine.org/viewtopic.php?t=263028 this thread] has been migrated to [http://developer-test.mozilla.org/en/docs/Preferences_System Devmo].


 
[[Category:Redirects]]
This document describes the new [[XBL]] bindings introduced in [[Deer Park|Deer Park Alpha 1]] (<small>aka Firefox 1.1a and Firefox 1.1 Developer Preview Release</small>) and other Toolkit 1.1 applications, which allow you write Options (Preferences) UI faster, using less [[JavaScript]] code.
 
= Why =
Describe the benefits of the new system:
* Use of declarative language (XUL elements/attributes) to associate UI controls with user preferences, less JS is needed
* More natural feel on Linux/Mac OS: instantapply/animation
* ...
 
= New attributes =
The following attributes may be put on any element in the prefwindow:
* onsyncfrompreference/onsynctopreference (onpreferenceread/onpreferencewrite in Deer Park Alpha 1) [https://bugzilla.mozilla.org/show_bug.cgi?id=287111]
* preference-editable
* preference

Latest revision as of 20:24, 8 September 2006

Information from this page and this thread has been migrated to Devmo.