Changes to qx:table

3 views
Skip to first unread message

Christian Boulanger

unread,
Jun 7, 2010, 9:58:39 AM6/7/10
to qxtran...@googlegroups.com
Hello everyone,

slowly working towards the next release, Siarhei has done some work on the table widget, which is a very complex widget when coded in javascript. 

Now the following syntax is possible, hopefully making your life easier for the most standard use cases of the table:

  <qx:table 
    tableColumnModel="qx.ui.table.columnmodel.Resize"
    selectionMode="{js}qx.ui.table.selection.Model.MULTIPLE_INTERVAL_SELECTION">
    <qx:tableModel class="qx.ui.table.model.Simple" />     
    <qx:tableColumn id="id" label="ID" editable="false" width="50" />
    <qx:tableColumn id="test" label="Some text" editable="true" width="150" />
    <qx:tableColumn id="boolean" label=" " editable="true" width="30" 
      dataCellRenderer="{js}qx.ui.table.cellrenderer.Boolean"
      cellEditorFactory="{js}qx.ui.table.celleditor.CheckBox" />
    <qx:tableColumn id="number" label="A number"  editable="true" width="80" />
    <qx:tableColumn id="date" label="A date" editable="true" />
  </qx:table>
  
We'd be happy if you can try it out and report problems.

Best,
Christian & Siarhei
Reply all
Reply to author
Forward
0 new messages