Re: Newbie question - BTemplate/Directives/Tables

"Diez B. Roggisch" <[email protected]>
Newsgroups gmane.comp.java.enhydra.barracuda.general
Message-ID <[email protected]>
Hi,

> I have a table where some of the rows - not following a certain pattern -
> need to have
> a different color that the others depending on a certain condition.

there is a template directive to set an attribute value. It should work like 
this:

<td class="Dir::Set_Attr.model.key.attribute_name">

where attribute_name then should be either class or bgcolor, depending on how 
you want to actually alter the color.

In your model you then simply return a string with eiter a css class name, or 
"#<color>".

Diez
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.