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
Post a Comment