【发布时间】: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'); });成功了。我还不能回答我自己的问题,因为我没有足够的声誉:)