Menu

#934 New component: Cell

5.0.0
closed
nobody
5
2009-09-01
2008-09-21
kato
No

Row children are automatically wrapped by a TD tag in row.dsp. Since we can't refer directly to the TD, we can't change the properties such as sclass, align or style of the TD tag. I propose a new Component perhaps called Rowcell that if added to Row takes care of the TD tag itself. I would think row.dsp could work as it does for any other child component, but if the child is a Rowcell, pass on rendering to rowcell.dsp which would take care of the TD tag and we could set/update properties on RowCell and have the TD reflect the changes.

This would be consistent with Listitem and Listcell.

See discussion in forum:

http://www.zkoss.org/forum/index.zul#path%3DlistComment%3BdiscussionId%3D5642%3BcategoryId%3D14%3B

Discussion

  • Jumper Chen

    Jumper Chen - 2009-09-01
    • labels: --> Components
    • milestone: --> 5.0.0
    • summary: New component: Rowcell --> New component: Cell
    • status: open --> closed
     
  • Jumper Chen

    Jumper Chen - 2009-09-01

    Ready since September 1.
    The Cell component can be embedded into Row or Vbox or Hbox for fully control the style and layout.
    For example,

    <grid>
    <rows>
    <row>
    <cell rowspan="12">2009</cell>
    <cell rowspan="3">Q1</cell>
    <cell>Jan</cell>
    </row>
    <row>
    <cell>Feb</cell>
    </row>
    <row>
    <cell>Mar</cell>
    </row>
    <row>
    <cell rowspan="3">Q2</cell>
    <cell>Apr</cell>
    </row>
    <row>
    <cell>May</cell>
    </row>
    <row>
    <cell>Jun</cell>
    </row>
    <row>
    <cell rowspan="3">Q3</cell>
    <cell>Jul</cell>
    </row>
    <row>
    <cell>Aug</cell>
    </row>
    <row>
    <cell>Sep</cell>
    </row>
    <row>
    <cell rowspan="3">Q4</cell>
    <cell>Qct</cell>
    </row>
    <row>
    <cell>Nov</cell>
    </row>
    <row>
    <cell>Dec</cell>
    </row>
    </rows>
    </grid>

     

Log in to post a comment.