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

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -