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