Sure, you just have to create your own cell editor. Here's a quick
sample implementation (may not be complete, I didn't really test it):
qx.Class.define("myapplication.DateEditor",
{
extend : qx.ui.table.celleditor.AbstractField,
members :
{
_createEditor : function()
{
var cellEditor = new qx.ui.form.DateField();
return cellEditor;
},
createCellEditor : function(cellInfo)
{
var cellEditor = this._createEditor();
cellEditor.originalValue = cellInfo.value;
if (cellInfo.value === null || cellInfo.value === undefined) {
cellInfo.value = new Date();
}
cellEditor.setValue(cellInfo.value);
cellEditor.addListener("appear", function() {
cellEditor.selectAllText();
});
return cellEditor;
}
}
});
Then you instruct your table to use it, e.g. for the first column:
var tcm = table.getTableColumnModel();
tcm.setCellEditorFactory(0, new myapplication.DateEditor());
Of course the cell data for that column must be JavaScript date objects.
[email protected] schrieb:
> Is this possible? Can someone give ma an examplecode?
>
>
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
> Lotusphere 2011
> Register now for Lotusphere 2011 and learn how
> to connect the dots, take your collaborative environment
> to the next level, and enter the era of Social Business.
> http://p.sf.net/sfu/lotusphere-d2d
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel