【问题标题】:Footable expand all rowsFootable 展开所有行
【发布时间】:2014-04-23 00:05:20
【问题描述】:

我正在使用footable (http://fooplugins.com/footable-demos/),我想在屏幕大小调整为移动屏幕大小时自动展开所有行。任何想法如何实现这一目标?

【问题讨论】:

  • trigger('footable_expand_first_row') 的代码是什么样的?您可能需要复制和修改该方法。
  • 其实有一个触发器footable_expand_all,只是文档中没有提到。所以 $('.footable').trigger('footable_expand_all');成功了。
  • 所以 $('table').trigger('footable_expand_all'); $('table').bind('footable_breakpoint', function() { $('table').trigger('footable_expand_all'); });成功了。我还不能回答我自己的问题,因为我没有足够的声誉:)

标签: jquery footable


【解决方案1】:
$('table').trigger('footable_expand_all');

$('table').bind('footable_breakpoint', function(){ 
    $('table').trigger('footable_expand_all'); 
    }); 

成功了。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-04-24
    • 1970-01-01
    • 2021-09-12
    • 2021-06-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多