Search
4182 results 31-40
Forum
- 26th Apr 2019How I can use columnDefs and buttons for print?what your goal with columnDefs is but you haven't defined the target columns with columnDefs.targets so it probably isn't
- 19th Apr 2019columnDefs return url_for with parameter errors 'data' is undefinedThis is one way to resolve the issue: <script> $(document).ready(function() { $('#table_data').dataTable({ "order": [[1, "desc"]], "columnDefs": [{ "targets": 0, "data": "download_link", "render": function (data, type, row, meta) { let url = "{{ url_for('confirmation_page', data='DATA') }}".replace('DATA', data); return '<a href="' + url + '">'+data+'</a>'; } }] })}); </script>
- 15th Apr 2019DataTables columns, columnDefs and rowCallback HTML5 initialisationYou can't set columnDefs with the initialisation options, but you can set the column options using HTML5 attributes as described here. Allan
- 23rd Mar 2019"intl" sorting plugin doesn't work (an issue about columnDefs type:string?)If I remove columnDefs, "intl" do nothing. My browser is Chrome 73.
- 9th Jul 2018how to use columnDefs multiple time in a datatableapplication), i used the columndefs to add buttons to
- 9th May 2018Complex styling with columnDefsUsing bootstrap classes did the trick for the alignment. Also figured out that the proper code is : "columnDefs": [ { "targets": [ 2,3,4,5,6,7,8,9,10,11,12,13,14,15,16 ], "className": "text-right" }, { "targets": [1,2,3,4,5,6,7,8,9,10,11,12], "render": function ( data, type, row, meta ) { return type === 'display'? '<input type="checkbox" name="group' + meta.row + '" /> ' + data:data; } } ]
- 27th Apr 2018columnDefs visible targets from array1,2]; var table = $('#example').DataTable({ columnDefs: [{ visible: false, targets: invisibleItems
- 2nd Feb 2018Problem when redefining columnDefsthe report and the columnDefs array that has a
- 6th Sep 2017datetime render on column not columnDefshuman readable format $('#example').DataTable( { columnDefs: [ { targets: 1, render: $.fn.dataTable.render.moment(
- 14th Jun 2017Problem with columnDefs example pageHmmm - I can't get the Markdown linking to work with the automatic category selection... Click the "DataTables - Columns" button to show only the columns options (which will work for both columns and columnDefs). Allan