Changes between Version 6 and Version 7 of rp_xml_ele_group


Ignore:
Timestamp:
May 16, 2013, 4:03:20 PM (4 years ago)
Author:
mmc
Comment:

added an example of vertical layout

Legend:

Unmodified
Added
Removed
Modified
  • rp_xml_ele_group

    v6 v7  
    8787In this case, both ''models'' and ''ambient'' are groups, so when wrapped within another group, they appear as tabs.
    8888
     89If you want to avoid the tabs and force a vertical (flat) layout of the groups, you can set the layout attribute of the containing group to '''vertical''' as follows:
     90
     91[[rpimage(zoo_group5.gif)]]
     92{{{
     93  <group id="tabs">
     94    <about><layout>vertical</layout></about>
     95
     96    <group id="models">
     97      <about> <label>Models</label> </about>
     98      ...input elements for this tab...
     99    </group>
     100
     101    <group id="ambient">
     102      <about> <label>Ambient</label> </about>
     103      ...input elements for this tab...
     104    </group>
     105  </group>
     106}}}
     107
     108Or, if the containing group contains anything besides groups (such as a number control, a note, a separator, etc.) then the containing group will fall back on vertical layout instead of using tabs.
     109
    89110You can see working code in the [browser:trunk/examples/zoo zoo of example's] in the [browser:trunk/examples/zoo/group group example] or on the hub in the directory /apps/rappture/examples/zoo/group.