Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82258

Datatables and Semantic wide previous and show controls

$
0
0

I went to https://datatables.net/download/index and download the libs using the following options:

Styling Framework: Semantic UI
Select Packages: DataTables
Extensions: AutoFill, Buttons, ColReorder, FixedColumns, FixedHeaders, KeyTable, Responsive, RowGroup, Scroller, Select.

Added the following recomended style and script

<link rel="stylesheet" type="text/css" href="DataTables/datatables.min.css"/>

The table shows up but the "Previous" button and "Show" drop down are too wide:

Here is how I initialize the code:

var gridAccounts = $('#gridAccounts').DataTable({
  select: true,
  ordering: true,
  paging: true,
  searching: false,
  bFilter: false,
  responsive: true,
  bInfo: false,
  data: [],
  rowId: 'id',
  columns: [
    { data: 'id', title: 'ID' },
    { data: 'first_name', title: 'First Name' },
    { data: 'last_name', title: 'Last Name' },
    //{ data: 'email', title: 'Email' },
    { data: 'type', title: 'Security Type' },
    { data: 'account', title: 'Account'},
    { data: 'status', title: 'Status'}
  ],
  columnDefs:[
    { targets: [0], visible: false }
  ]
});

Viewing all articles
Browse latest Browse all 82258

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>