Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tabulator column header alignment

Tags:

tabulator

In Tabulator, how can I make the horizontal alignment of column headers match the column data, or perhaps manage them individually. A column of centered data looks odd with a left-aligned header.

I am very new at this but I have been through the Tabulator info pages, the bitbucket pages, and searched here. It seems like there might be some way by creating some formatter functions but that seems very obscure for such a basic function.

Thanks, Sam.

like image 424
SamP Avatar asked Nov 01 '25 00:11

SamP


1 Answers

there is now an available property for each column:

var table = new Tabulator("#example-table", {
    columns:[
        {title:"Name", field:"name", headerHozAlign:"right"}, //right align column header title
    ],
});
like image 184
lorenzo Avatar answered Nov 04 '25 09:11

lorenzo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!