Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

datatables data in one line

//in HTML
<table id="table" class="dt-responsive display nowrap" style="width:100%!important;"></table>

//in js
$('#table').DataTable();
jQuery('.dataTable').wrap('<div class="dataTables_scroll" />');

//style
.dataTables_scroll
{
    overflow:auto;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #datatables #data #line
ADD COMMENT
Topic
Name
4+9 =