Hi Stefan,
I am interested to this post too, because I am playing arround with nearly
same condition.
I know, for me as a beginner this is not the correct way to learn Qooxdoo
:-)
If I read the Apiviewer :
addNumericCondition(String condition, Integer value1, String align, String
color, String style, String weight, String target)
..
style = The style to format the cell with if the condition matches.
But I never saw an example here where the "style" is used.
It was always NULL
newRenderer.addNumericCondition(">", 0, null, "#FF0000", null, null);
So my question is:
What string or syntax is allowed for using "style"?
I understand style as CSS syntax.
Can I fill in for "style" like "background-color = "#ff6655"" ?
And: why we have here 4 conditions (align, color, style, weight)
normally align, color, weight and other could be used in style?
In the Conditional.js I found this:
..
var style =
{
"text-align": this.__defaultTextAlign,
"color": this.__defaultColor,
"font-style": this.__defaultFontStyle,
"font-weight": this.__defaultFontWeight
};
Is it possible to add
"background-color": this.__defaultBackgroundColor ?
best regards
Hansjoerg
Stefan Volbers wrote:
>
> Hi Fritz,
>
> I had the same case in the end of 2008 and solved it by writing my own
> cellrenderer.
>
> I then copied several parts of cellrenderer.Conditional, because I had
> to change the behaviour for my needs anyway , and set
>
> style["background-color"] = this.conditions[i][1];
>
> on occasion. I haven't touched it since then as it works, but, looking
> at Conditional's source right now, it might work out for you to extend
> Conditional and just override __applyFormatting and _getCellStyle to
> support "background-color" too. Well, I'd suggest you to head that way.
> Certainly, developers like Derrell or others might come up with more
> adequate solutions.
>
> HTH, else write if you need more info,
> greetings,
> Stefan
>
>
> On 04.02.2010 09:58, Fritz Zaucker wrote:
>> Hi,
>>
>> I have a table with say 5 columns. I'd like to have a different
>> background
>> color in one of these columns (e.g. column 3).
>>
>> As far as I could figure out the background color is set in the
>> RowRenderer,
>> but for the whole row. So the next obvious choice would be the
>> CellRenderer.
>> However, it is not clear to me how the two might interfere in this
>> respect.
>>
>> And (similar) issue arises if I'd like to set a different background
>> color
>> for a specific cell, e.g. similar to the Conditional CellRenderer (which
>> unfortunately only let's me specify styles for the cell content).
>>
>> I'd appreciate any hints on how to implement something like that.
>>
>> Thanks and best regards,
>> Fritz
>>
>
> ------------------------------------------------------------------------------
> The Planet: dedicated and managed hosting, cloud storage, colocation
> Stay online with enterprise data centers and the best network in the
> business
> Choose flexible plans and management services without long-term contracts
> Personal 24x7 support from experience hosting pros just a phone call away.
> http://p.sf.net/sfu/theplanet-com
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
--
View this message in context:
http://old.nabble.com/Different-background-color-in-column-cell-of-qx.ui.table.Table-tp27449521p27452206.html
Sent from the qooxdoo-devel mailing list archive at Nabble.com.
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel