我有一张桌子,需要启用可滚动选项。我尝试了下面的代码但是我根本没有看到可滚动选项。
$("#ticket-table").tablesorter({
sortList: [],
headers: {
// 2: {
// //sorter: 'time',
// //sorter:'my_date_column'
// //dateFormat: "ddd mmm yyyy hh:mm:ss"
// //sorter: 'monthDayYear'
// },
10: {
sorter: false
},
16: {
sorter: false
}
},
theme: "bootstrap",
headerTemplate: '{content} {icon}',
widgets: ['uitheme','scroller'],
widgetOptions: {
scroller_height : 20,
// scroll tbody to top after sorting
scroller_upAfterSort: true,
// pop table header into view while scrolling up the page
scroller_jumpToHeader: true,
// In tablesorter v2.19.0 the scroll bar width is auto-detected
// add a value here to override the auto-detected setting
scroller_barWidth : null
// scroll_idPrefix was removed in v2.18.0
// scroller_idPrefix : 's_'
}
});