Search
4198 results 971-980
Forum
- 20th Dec 2019Configuration of DataTable in PUG (Jade)fn.dataTable.isDataTable('#tableOrderGeneric')) { $('#tableOrderGeneric').DataTable({ destroy: true, 'columnDefs': [{ 'targets': [2,3,4,5,6], /* column index
- 17th Dec 2019Multiple Check boxes to update tableexportOptions:{ columns: ':visible' } }, 'colvis', ], columnDefs: [ { targets: -1, visible: true
- 12th Dec 2019DatatableUsing columns you need to define all the columns in your table. Remove the columnDefs option and try this: "columns" : [ {"data" : "id"}, {"data" : "title"}, {"data": "completed"}, { "data": null, defaultContent: '<div class="btn-group"> <button type="button" class="btn btn-info"> test </button></div>' } ] Kevin
- 11th Dec 2019Datatable not rendering.with a more simpler columnDefs, something like this: columnDefs:
- 9th Dec 2019Appending html to datatables columns after drawI believe I got it to work like this, is using columndefs twice proper syntax? columnDefs: [{ targets: j, orderable: false }], //make first column invisible columnDefs: [{ className: "my_class", targets: columnsThatHaveMouseover }],
- 4th Dec 2019Need sorting_asc on different columnof targets: 3 of columnDefs. The data which is
- 30th Nov 2019How to add date range filter?change this code in columnDefs to match: { targets: [7,
- 29th Nov 2019How can i render HTML in this example.For anyone facing this. The error was data: "download_link" , Here is the final and working Js $('#hugetable').DataTable({ dom: 'Bfrtip', ajax: 'http://localhost/admin/index.php?page=product/data_load/', deferRender: true, pageLength: 10, responsive: true, buttons: [ 'csv', 'excel' ], columnDefs: [ { targets: 9, render: function ( data ) { return '<a href="index.php?page=product/edit/'+data+'">Download</a>'; } } ] });
- 29th Nov 2019Render Text-Helper not showing HTML?use either columns or columnDefs to to apply the
- 27th Nov 2019Parsing date from text string to allow proper sortingwith 'jquery.dataTables.min.js' and 'jquery.dataTables.min.css'. "columnDefs": [ { // remove number of releases