I have the following table and I would like to centre the column headers of a couple of the columns;
I wish to centre the Protocol & Power headers and so far I have not found a way to do it, so any ideas will be welcome.
As can be seen I have tried hozAlign
but that did not work
This is the template code used to generate the above
msg.tbInitObj = {
"maxHeight": "100%",
"pagination": "local",
"paginationSize": 10,
"paginationCounter": "rows",
"columns": [
{"title": "Model Name", "field": "modelID", "width": "20%"},
{"title": "Type", "field": "type", "width": "22%"},
{"title": "Protocol", "field": "protocol", "width": "10%"},
{"title": "Brand", "field": "brand", "width": "14%"},
{"title": "Attribute Set", "field": "attributeSet", "width": "18%"},
{"title": "Power", "hozAlign": "center",
"columns": [
{"title": "Source",
"field": "powerSource",
"width": "8%",
"formatter": "lookup",
"formatterParams": {"battery": "Battery", "mains": "Mains"},
},
{"title": "Type",
"field": "powerType",
"width": "8%",
}
]
}
]
}
I would also like to vertically centre the column headers Model Name -> Attribute Set in the two row space created by the split header Power.