Hi There,
From the ToDo tutorial I got this code:
private def desc(td: ToDo, reDraw: () => JsCmd) =
swappable(<span>{td.desc}</span>,
<span>{ajaxText(td.desc,
v => {td.desc(v).save; reDraw()})}
</span>)
What if I've a numeric field, e.g. td.num and I want to view/edit it?
I got to the point that I modified the code to look like this:
<span>{ajaxText(td.num.toString,
v => {td.desc(v).save; reDraw()})}
</span>)
But I still get another compile error, that tells me, that it awaits
String instead of Int.
What do I've to change here? I tried some things with toString() too,
but all didn't worked.
v => {td.num(v).save; reDraw()})}
thanks
Tobias
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Lift" 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/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---