make datatable responsive
This commit is contained in:
parent
7eb32bf1c3
commit
4173275e96
3 changed files with 6 additions and 2 deletions
|
@ -13,6 +13,8 @@
|
|||
//= require jquery
|
||||
//= require jquery_ujs
|
||||
//= require dataTables/jquery.dataTables
|
||||
//= require dataTables/extras/dataTables.responsive
|
||||
//= require dataTables/jquery.dataTables
|
||||
//= require select2
|
||||
//= require turbolinks
|
||||
//= require_tree .
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
* file per style scope.
|
||||
*
|
||||
*= require_tree .
|
||||
*= require dataTables/extras/dataTables.responsive
|
||||
*= require dataTables/jquery.dataTables
|
||||
*= require select2
|
||||
*= require_self
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
%h2= @user.name
|
||||
%table#transactions.display{data: { source: user_path(@user) }}
|
||||
%table#transactions.display.responsive.no-wrap{data: { source: user_path(@user) }}
|
||||
%thead
|
||||
%tr
|
||||
%th Amount
|
||||
|
@ -39,7 +39,8 @@
|
|||
{ data: 'message', name: 'Message' },
|
||||
{ data: 'peer', name: 'Peer' },
|
||||
{ data: 'time', name: 'Time' }
|
||||
]
|
||||
],
|
||||
autoWidth: false
|
||||
});
|
||||
|
||||
var tds = $('.input-listen');
|
||||
|
|
Loading…
Reference in a new issue