Quantcast
Viewing all articles
Browse latest Browse all 82146

Change globally the alignment of cells based on sType

Hi Datatable experts,

Is there a global way to align the cells in the table based on their type. By default, all cells are aligned to the left when dataTable is applied. I need to align numbers to the right, date to the center and the rest to the left.

On my search, i found that using $.fn.datatableExt, there are ways to custom define the sorting, filtering and other features of a column based on it's sType, but couldn't get clearly how to change the alignment.

I prefer a solution to be applied globally instead of applying during every datatable initialization.

Regards
Vijay.K

Viewing all articles
Browse latest Browse all 82146

Trending Articles