Make XUL Elements of prefwindow bound to preferences

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” />

Mozilla 1.8
Type: boolean

If 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:, , ,

Blogged with Flock

Posted in MOzilla. 1 Comment »

One Response to “Make XUL Elements of prefwindow bound to preferences”

  1. Anandhan Says:

    How to find whether the OK button or Cancel button is clicked in the prefwindow.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: