For some elements like Label with preference attribute won’t bound to preference element.
The following is the workaround for this.
// Won’t work
<label id=”defaultLabel” preference=”pref-defaultPrinter” />
// Will Work
<label id=”defaultLabel” preference-editable=”true” preference=”pref-defaultLabel” />
preference-editable
Mozilla 1.8
Type: booleanIf true, the element may be used as one that modifies a preference in a prefwindow. The preference attribute may be used to connect to a preference element. This is useful for custom elements implemented in XBL. The element should fire change or select events when the value is changed so that the preference will update accordingly.
XUL:Attribute:preference-editable – MDC
technorati tags:preference, preference-editable, xul, mozilla
Blogged with Flock
May 6, 2011 at 4:43 am
How to find whether the OK button or Cancel button is clicked in the prefwindow.