jquery - How to make dataTable resized automatically after reloading data? -


when there no data datatable looks :

enter image description here

the last header has small width. after reloading , datatable has last header same width:

enter image description here

but when inspect page last header has larger width :

enter image description here

so how make datatable automatically adjusted in last photo after being reloaded ?

you can added following code blog datatable.js

  $(window).on("resize", function () {         table.columns.adjust()            .responsive.recalc(); }) 

Comments

Popular posts from this blog

html - Difficulties with background-image property -

visual studio code - What does the isShellCommand property actually do and how should you use it? -

ios - Segue not passing data between ViewControllers -