Quantcast

Notice: Position of label for checkboxes will change in version 0.8.8

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Notice: Position of label for checkboxes will change in version 0.8.8

Philipp Wagner-4
Hi,

this mail is to give you notice of a change that will come with Mozilla
XForms 0.8.8.

Consider the following code:

<xf:input ref="boolean-node">
  <xf:label>testlabel</xf:label>
</xf:input>

Currently, this is displayed as follows (in LTR languages):
testlabel [x]

Starting from now on, this will be displayed like this:
[x] testlabel

This change in default behavior was made because it reflects the
commonly used and expected behavior.

If you require the old behavior there is now a way to influence the
position of the label: the new (non-standard) labelposition attribute.
The following code will give you back the old behavior (label first,
then checkbox):

<xf:input ref="boolean-node"

xmlns:xfx="http://www.mozilla.org/projects/xforms/2009/extensions"
          xfx:labelposition="before">
  <xf:label>testlabel</xf:label>
</xf:input>


This change starts to show in tomorrows nightly builds and will be part
of the upcoming 0.8.8 release of Mozilla XForms.

Please let me know if this causes any problems for you.

Philipp
_______________________________________________
dev-tech-xforms mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-xforms
Loading...