Alan
unread,Jan 25, 2011, 9:11:34 AM1/25/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Lift
Hi,
A contrived version of the use case I have is the following:
I have a template with:
<div class="lift:ASnippet">
<ul>
<li> Item </li>
</ul>
</div>
Then I have a snippet like the below:
def render = {
val aList = List("A","B","C")
"li *" #> aList
}
which correctly fills the "li"s with my Strings. However, I want also
to give each "li" a unique "id=" attribute (let's say from a second
List). I want to do this to later get easy javascript access to, say,
hide a specific "li" upon an event.
Of course, I have many other ways to accomplish this without css
transforms. But css transforms are neat, and since this seems to be a
common use case I was wondering if there was a way.
Thanks in advance,
Alan