忽略对特定列tablesorter的排序 [英] ignore sorting on a particular column tablesorter
本文介绍了忽略对特定列tablesorter的排序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我可以忽略jquery tablesorting插件中特定列的排序吗?
Can I ignore sorting on a particular column in jquery tablesorting plugin?
所以基本上当页面加载时我不希望对列进行任何排序搜索因为它包含图像并进行自己的一些javascript处理,这大大减慢了我的排序。
So basically when the page is loaded I do not not want any sorting done on the column "Search" because it contains images and does some javascript processing of its own and this slows down my sorting considerably.
这是我的代码:
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery("table").tablesorter({
});
});
});
puts "<table cellspacing=\"1px\" class=\"tablesorter\" >"
puts "<thead>"
puts "<tr>"
puts "<th>Search</th>"
puts "<th>Sub-App</th>"
puts "<th>Division</th>"
puts "<th>Region</th>"
puts "<th>Market</th>"
puts "<th>Language</th>"
puts "<th>Function</th>"
puts "<th>LOB</th>"
puts "<th>Term</th>"
puts "<th>Center</th>"
puts "</tr>"
puts "</thead>"
puts "<tbody>"
puts "<tr>"
puts "<td id=\"$cellID\">"
puts "<img src=\"images/magnifier.gif\" style=\"cursor:pointer\" onclick=\"showRouting({'spec':'${specific}', 'id':'${mkt_id}', 'name':'${mkt_name}', 'xfer':'${xfertype}', 'cell':'${cellID}'})\"</img>"
puts "</td>"
puts "<td>$level</td>"
puts "<td>$div_name</td>"
puts "<td>$reg_name</td>"
puts "<td>$link</td>"
puts "<td>$lang</td>"
puts "<td>$func</td>"
puts "<td>$lob</td>"
puts "<td>$term</td>"
puts "<td>$ctr_name</td>"
puts "</tr>"
puts "</tbody>"
puts "</table>"
推荐答案
没关系。以下回答我的问题。它没有更快排序,因为它仍然显示该列上的图像。
Never mind. the following answers my question. it doesnt sort any faster because it still displays the images on that column.
headers: {
0: { sorter: false }
}
这篇关于忽略对特定列tablesorter的排序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文