I didnt find this anywhere, so I thought it might be of a more general
interest...(okok, you are right, I found the question leading to this
solution only twice, once in this forum and once by myself, but
anyway :) )
To make list_row_class work on a whole row and not only on one column
you have to add the "record" class selector to the css.
.active-scaffold tr.record.geplant td {
background-color: #ffff3f;
}
.active-scaffold tr.record.even-record.geplant td {
background-color: #ffffbf;
}
list_row_class is defined as follows:
def list_row_class(record)
if record.class == Meldun
record.zustand.to_s
end
end
(where of course one possible value of "zustand" ist "geplant").
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/activescaffold?hl=en
-~----------~----~----~----~------~----~------~--~---