Hi Christian,
the problem is that qx.ui.virtual.cell.Cell doesn't support decorators.
You have to apply a normal css style for the border, but I'm not sure if
you can do this by defining a css style which uses the generated css
class attribute. Otherwise you have to write your own cell renderer
which supports the border functionality.
Cheers,
Chris
Am 05.09.2010 21:24, schrieb panyasan:
> Hi,
>
> I have a virtual table and want to style some cells with a white 1px border.
> How do I do that?
>
> I tried
>
> var cellRenderer = new qx.ui.virtual.cell.Cell();
> cellRenderer.setAppearance("cell-white");
>
> the appearance enty:
>
> "cell-white" :
> {
> style : function(states)
> {
> return {
> textColor : "white",
> decorator : "border-white"
> };
> }
> }
>
> the decoration entry:
>
> "border-white" :
> {
> decorator : qx.ui.decoration.Single,
>
> style :
> {
> width : 1,
> color : "white"
> }
> }
>
> but that gives me:
>
> object[styler[propertyName]] is not a function
> http://.../qooxdoo/1.2/framework/source/class/qx/util/PropertyUtil.js Line
> 206
>
> What am I doing wrong?
>
> Thanks,
>
> Christian
>
>
>
------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:
Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel