(1.to(114).map(num => ".position" #> num)) ?
--
--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code
---
You received this message because you are subscribed to the Google Groups "Lift" group.
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
def renderNums = "#appUserStatTbl" #> (1.to(114).map(num => ".position *" #> num.toString))
def sendSnapshot(): Unit = {
val html = Templates("admin" :: "app" :: "statistics" :: Nil).getOrElse(<span>Template Not found</span>)
val out = (renderNums(Statistics.listStatistics(html))).toString<div class="l:Statistics.listStatistics">
<h3>User Statistics - <span name="generation-date">Date and Time</span></h3>
<center>
<table id="appUserStatTbl" class="tablesorter" style="width: 80%" border="1" >
<thead>
<tr>
<th>Position</th>
<th>Statistic</th>
<th>Value</th>
</tr>
</thead>
<tbody>
<tr>
<td class="position"></td>
you were really close!try"#appUserStatTbl" #> (1.to(114).map(num => ".position *" #> num.toString)) but crap it renders table 114 times :(I just removed the * after #appUserStatTblThanksDiego
On Fri, Aug 26, 2016 at 4:58 AM, Maciej Bąk <maciej...@gmail.com> wrote:
I tried also "#appUserStatTbl *" #> (1.to(114).map(num => ".position *" #> num.toString)) but crap it renders table 114 times :(
W dniu piątek, 26 sierpnia 2016 08:46:00 UTC+2 użytkownik Maciej Bąk napisał:HI,Im rendering quite big table ( over 100 positions ).In each I have <td class="position"></td>Is it possible to somehow make working :(1.to(114).map(num => ".position" #> num)) ?
--
--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code
---
You received this message because you are subscribed to the Google Groups "Lift" group.
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+u...@googlegroups.com.
def renderNums = "#appUserStatTbl" #> (1.to(114).map(num => ".position *" #> num.toString))
def sendSnapshot(): Unit = {
val html = Templates("admin" :: "app" :: "statistics" :: Nil).getOrElse(<span>Template Not found</span>)
val out = (renderNums(Statistics.listStatistics(html))).toString
<div class="l:Statistics.listStatistics">
<h3>User Statistics - <span name="generation-date">Date and Time</span></h3>
<center>
<table class="tablesorter" style="width: 80%" border="1" >
<thead>
<tr>
<th>Position</th>
<th>Statistic</th>
<th>Value</th>
</tr>
</thead>
<tbody>
<tr id="appUserStatTbl" ><td class="position"></td>
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+unsubscribe@googlegroups.com.
<table id="appUserStatTbl" class="tablesorter" style="width: 80%" border="1" >
<thead>
<tr>
<th>Position</th>
<th>Statistic</th>
<th>Value</th>
</tr>
</thead>
<tbody>
<tr>
<td class="position"></td>
<td>A</td>
<td class="l-static-growth-rate"></td>
</tr>
<tr>
<td class="position"></td>
<td>B</td>
<td class="l-mua"></td>
</tr>
<tr>
<td class="position"></td>
<td>C</td>
<td class="l-wua"></td>
</tr>
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+unsubscribe@googlegroups.com.