大佬教程收集整理的这篇文章主要介绍了TableSorter — filter_external 上的 select2,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我想在我的 tablesorter 表上使用 SELEct2 的多选功能。
但我只想根据一列进行过滤。我知道 data-filter="false",但这个简单的方法在搜索标题中添加了一个“禁用”属性。
我可以将显示属性设置为“无”,但随后您会得到:http://antigraffiti.wpENGIne.com
我想知道的是:
这是我目前正在使用的功能:
jquery(document).ready(function($)
{
var $table = $('#taxonomyTable').tablesorter(
{
Widgets: ['filter'],WidgetOptions : {
// filter_external : '#filter-posts',filter_reset: '.close-icon',filter_searchDelay: 75,// filter_saveFilters : true,// filter_columnFilters: true,filter_formatter : {
// default setTings on first column
0 : function($cell,indX){
return $.tablesorter.filterFormatter.SELEct2( $cell,indx,{
// *** SELEct2 filter formatter options ***
cellText : '',// Text (wrapped in a label element)
match : true,// adds "filter-match" to header & modifIEs search
value : [],// initial SELEct2 values
// *** ANY SELEct2 options can be included below ***
// (showing default setTings for this formatter codE)
multiple : true,// allow multiple SELEctions
wIDth : '100%' // reduce this wIDth if you add cellText
});
}
}
}
});
});
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)
以上是大佬教程为你收集整理的TableSorter — filter_external 上的 select2全部内容,希望文章能够帮你解决TableSorter — filter_external 上的 select2所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。