David Stanton
David Stanton

Reputation: 75

How do I centre the column header in tabulator?

How can I centre the column header, no matter what I try i cant seem to do itenter image description here

Upvotes: 1

Views: 563

Answers (1)

JoeBackstab
JoeBackstab

Reputation: 36

You should include your code in your question for us to help better.

There's a property called headerHozAlign that you can set to center.

Here's how you'd do it:

var table = new Tabulator("#example-table", {
    columns:[
        {title:"Name", field:"name", headerHozAlign:"center"}, //center align column header title
    ],
});

Upvotes: 2

Related Questions