I have a template like this:
<tr class="leasing_company">
<td class="row-labels name">lc name</td>
<td class="values">123</td>
</tr>
I need the tr's to repeat and within the structure, the last td
element to repeat with content but also with a specific class
attribute.
The last bit seems to cause some problems:
I have this:
".name *" #> lc.name.is &
".values *" #> res.segments.map {segment =>
res.filteredResult(lc).avg(segment).toString}
which will handle the td with content, but how do also add a
(calculated) class attribute to the td?
/Jeppe
Hi,
I have a template like this:
<tr class="leasing_company">
<td class="row-labels name">lc name</td>
<td class="values">123</td>
</tr>
I need the tr's to repeat and within the structure, the last td
element to repeat with content but also with a specific class
attribute.
The last bit seems to cause some problems:
I have this:
".name *" #> lc.name.is &
".values *" #> res.segments.map {segment =>
res.filteredResult(lc).avg(segment).toString}
which will handle the td with content, but how do also add a
(calculated) class attribute to the td?
/Jeppe
--
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to lif...@googlegroups.com.
To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
Thanks, works great! I've updated the Wiki with this example and the
"*" selector.....
The CSS binding stuff is both neat and very powerful, but I feel I
lack a good reference as to what is possible (maybe this was the only
one missing from the Wiki, in which case everything is fine :-) The
amount of implicits at work to make this happen makes it less than
trivial to peruse the source....
/Jeppe
/Jeppe
--
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to lif...@googlegroups.com.
To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
Ahh cool. Haven't had time to dig into Simply Lift yet....seems like
it could be worthwile :-)
/Jeppe