Dynamically change datatables column width via API

404
June 08, 2017, at 11:42 AM

I know we can set the columns width on a datatable via the columns.width option. But now I want to change that option on the xhr event.

Based on the ajax response I get from the server I want to hide/show a column and adjust the other columns width accordingly (they are all fixed size). Is there any way to achieve that via API?

I looked around all docs but seems it's not possible to achieve.

READ ALSO
Ng-include header with materializecss

Ng-include header with materializecss

CodePen: https://codepenio/raynerprogramming/project/editor/ArNmxN/

261
How do I initiate a fancybox 3 slideshow by clicking on a single image or button

How do I initiate a fancybox 3 slideshow by clicking on a single image or button

How do I initiate a fancybox 3 slideshow by clicking on a single image or buttonThere appears to be a good example on the Fancyapps site with the Custom Demo but no coding example specific to this case

294
$.inArray deep search

$.inArray deep search

I have a json file like this:

220
jquery val returns jquery function

jquery val returns jquery function

maybe im just to tired but can someone tell me why this is not working? i have this inputfield with the following jquery function

411