Preferences bindings: Difference between revisions
From MozillaZine Knowledge Base
Jump to navigationJump to search
(→New elements: moving to devmo) |
mNo edit summary |
||
Line 1: | Line 1: | ||
: '' | : ''This page is being migrated to [http://developer-test.mozilla.org/en/docs/Preferences_System Devmo].'' | ||
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. | 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 = | = Why = | ||
Describe the benefits of the new system: | Describe the benefits of the new system: | ||
Line 21: | Line 9: | ||
* More natural feel on Linux/Mac OS: instantapply/animation | * More natural feel on Linux/Mac OS: instantapply/animation | ||
* ... | * ... | ||
= New attributes = | = New attributes = | ||
Line 29: | Line 15: | ||
* preference-editable | * preference-editable | ||
* preference | * preference | ||
Revision as of 03:03, 9 July 2005
- This page is being migrated to Devmo.
This document describes the new XBL bindings introduced in Deer Park Alpha 1 (aka Firefox 1.1a and Firefox 1.1 Developer Preview Release) 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) [1]
- preference-editable
- preference