Des誰知道我可以如何使這個Jquery plugin某些列unsortable?我似乎無法在文檔中找到有關它的任何信息。使一些列unsortable?
2
A
回答
6
你已經錯過了,這裏是代碼:
$(document).ready(function() {
$("table").tablesorter({
// pass the headers argument and assing a object
headers: {
// assign the secound column (we start counting zero)
1: {
// disable it by setting the property sorter to false
sorter: false
},
// assign the third column (we start counting zero)
2: {
// disable it by setting the property sorter to false
sorter: false
}
}
});
});
5
您將需要使用headers選項,以使某些列未排序。
$(document).ready(function() {
$("table").tablesorter({
// pass the headers argument and assing a object
headers: {
// assign the secound column (we start counting zero)
1: {
// disable it by setting the property sorter to false
sorter: false
},
// assign the third column (we start counting zero)
2: {
// disable it by setting the property sorter to false
sorter: false
}
}
});
});
我希望這有助於!
+0
它當然DSQUARED :)! – pufAmuf
2
這是正確的,在大桌子的headers
選項頁面上,你掛下:
的指令,每列控件格式的對象:
headers: { 0: { option: setting }, ... }
例如,要禁用 排序表上的前兩列:headers: { 0: { sorter: false}, 1: {sorter: false} }
相關問題
- 1. 在dojox.data.datagrid中生成列unsortable
- 2. 從unsortable表查詢和導出SQL Server
- 3. 如何使一些列不可編輯,並在QTableView中編輯一些列?
- 4. LINQ UNPIVOT一些列
- 5. 一些在陣列
- 6. Tablesorter - 爲贊助商提供一個表格行嗎? (使其成爲第一,unsortable,自定義css)
- 7. 使一些列表聯盟在C#
- 8. ORMLite使用謂詞選擇一些列
- 9. 有些列使用雙引號和一些列在postgres中沒有雙引號
- 10. 在data.table使用一些列的值,以確定哪些其餘列將用於
- 11. 一些錯誤與陣列
- 12. 列操作,合併一些
- 13. PHP只列出一些
- 14. MySQL的一些行的列
- 15. 分區忽略一些列
- 16. dir - 列出除了一些
- 17. 想修復一些列
- 18. 一些引導列重疊
- 19. Jtable隱藏一些列
- 20. 放一些列值在新列使用SQL
- 21. SQL Server中的列分爲一些列
- 22. SUMIF一些列值基於其他列
- 23. 一些使用流
- 24. 一些使用類
- 25. 更新一些未在另一個表中使用的列
- 26. 任何方式來使一個C#列表與一些元素?
- 27. 把每個交替行中使用一些Unix一列命令
- 28. 在同一列重複一些操作
- 29. 合併多個熊貓數據框 - 一些使用共享唯一ID,一些使用共享列
- 30. MySQL的:使用所有VS使用一些PK列
謝謝你這麼多zdrsh :) – pufAmuf