This should be in UI samples, but if the row has the class name "sortbottom", it'll always stick to the bottom. Similar effect for "sorttop".

Handling <tfoot> is a great idea. How does one check if a row is in tfoot? We can then change the "refresh" function accordingly.



On 10/08/2013 10:22 AM, teilo wrote:
HI all,

Is it possible to generate a sortable table that has a footer as well as a 
header?

I had a quick look at the source and it appears the sorter code treats all rows
apart from the first as sortable but wondered if there was any tricks to get
this working?

I've tried putting the footer in a <tfoot> but that doesnkt work in IE or 
chrome :-(

example of what I am trying to do

      <table class="pane sortable" id="mytable">
        <thead>
        <tr>
          <td class="pane-header">Header1</td>
          <td class="pane-header" style="width:5em">Header1</td>
        </tr>
        </thead>
        <tbody>
          <!-- only entries in here should be sortable. -->
          <j:forEach var="p" items="${it.someList}">
            <tr>
              <td class="pane" data="${p.desc}">${p.desc}</td>
              <td class="pane" data="${p.value}">${p.value}</td>
            </tr>
          </j:forEach>
        </tbody>
        <tfoot>
          <!-- these entries also get sorted but should always be the last rows
:-( -->
          <tr>
            <td class="pane-header">Total</td>
            <td class="pane-header">${it.totalString}</td>
        </tr>
        </tfoot>
      </table>

Thanks in advance.

/James

--
You received this message because you are subscribed to the Google Groups
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.



--
Kohsuke Kawaguchi | CloudBees, Inc. | http://cloudbees.com/
Try Jenkins Enterprise, our professional version of Jenkins

--
You received this message because you are subscribed to the Google Groups "Jenkins 
Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to