jquery - Stick tableinfo to specific place in jqueryDatable -


everybody! i'm trying stick tableinfo in jquery datatable, thisenter image description here

but, when chang value in show-list, info slides down middle of column, thisenter image description here

i tried differnt variations of css fix that, failed. use code

.datatables_wrapper .datatables_info { clear: both; float: right; margin-top: -510px; margin-right: -550px; 

have got ideas how fix that?

use infocallback generate desired a - b of z layout :

var table = $("#example").datatable({    infocallback: function(settings, start, end, max, total, pre) {       return start+" - "+end+' of '+max;    } }); 

move tableinfo first column of table #example :

$(".datatables_info").detach().appendto($("#example th:first")); 

demo -> http://jsfiddle.net/zst02x5h/


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -