datatables - How to specifiy a column min-width? -


how can specify min-width column in datatables?

i can't use class classname because width variable. width option isn't sufficient. there doesn't appear style option.

i still recommend use class name or multiple class names , columns.classname option keep css rules belong - in css files.

however if want assign min-width value @ run-time, can use createdrow option define callback whenever tr element created table's body.

var table = $('#example').datatable({    'createdrow': function(row, data, dataindex){       $('td:eq(3)', row).css('min-width', '200px');    } }); 

see this example code , demonstration.


Comments

Popular posts from this blog

sql server - Cannot query correctly (MSSQL - PHP - JSON) -

php - trouble displaying mysqli database results in correct order -

C++ Linked List -