Geoff,

Thanks for your suggestion.  It worked out well for me.  I'm using severity
level as a string value in the cell.  I defined css class as the same name
as severity level so I skipped getSeverityLevelClass method.  Example:

In css file:
div.Critical{ color: red; }
div.Major{ color: orange; }

In tml page:
              <t:parameter name="severityCell">
                      <div class="${alarm.severity}">${alarm.severity}</div>
              </t:parameter>

Again thank you very much,
-victor

On Thu, Jul 3, 2008 at 5:46 AM, Geoff Callender <
[EMAIL PROTECTED]> wrote:

> That would be fine to give one style to the whole column, but I think the
> issue is he wants the style to vary based on the value in the cell.
>
>
> On 03/07/2008, at 10:27 PM, Thiago H. de Paula Figueiredo wrote:
>
>  Em Thu, 03 Jul 2008 07:56:48 -0300, Geoff Callender <
>> [EMAIL PROTECTED]> escreveu:
>>
>>  ...try putting a div in a t:parameter and varying the div's class, eg.
>>>
>>
>> Why don't you use pure CSS? If the objects in your Grid have a "name"
>> property, for example, its cell is generated with <td class="name">. Thus,
>> you just need to define a rule like this in you CSS file:
>>
>> table.t-data-grid td.name {
>>        background-color: red;
>> }
>>
>> Thiago
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to