2014-04-23 2 views
2

나는 풋 가능 (http://fooplugins.com/footable-demos/)을 사용하고 있으며 화면 크기가 모바일 화면 크기로 조정되면 모든 행이 자동으로 펼쳐집니다. 어떤 아이디어가 이것을 달성하는 방법?Footable 모두 확장 모두

+0

'trigger ('footable_expand_first_row ')의 코드는 어떻게 생겼습니까? 해당 방법을 복제하고 수정해야 할 수도 있습니다. – isherwood

+0

실제로는 footable_expand_all 트리거가 있지만 문서에는 언급되지 않았습니다. 그래서 $ ('. footable'). trigger ('footable_expand_all'); 속임수를 쓰자. – user2667042

+0

그래서 $ ('table'). trigger ('footable_expand_all'); $ ('table'). bind ('footable_breakpoint', function() {$ ('table').} 트리거 ('footable_expand_all');}); 속임수를 쓰자. 내가 충분한 명성을 얻지 못했기 때문에 나는 아직 내 자신의 질문에 대답 할 수 없다. – user2667042

답변

3
$('table').trigger('footable_expand_all'); 

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

트릭을 수행합니다.

+0

예, 그것은 매력처럼 작동합니다. – Vaishak