Preferences bindings
From MozillaZine Knowledge Base
- 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