Is there a way to express the column header directly in the columns
settings?
colHeaders: [
'A',
'B',
],
columns: [
{
data: 'a',
type: 'text',
},
{
data: 'b',
type: 'numeric',
},
]
It’s always an extra check to remember to update headers if we update columns.
dave.stewart:
colHeaders: [
‘A’,
‘B’,
],
columns: [
{
data: ‘a’,
type: ‘text’,
},
{
data: ‘b’,
type: ‘numeric’,
},
]
You can use title
inside columns.
Here’s an example Handsontable example - JSFiddle - Code Playground
1 Like
Thanks!
I figured it must be undocumented, but it is there:
It’s a shame it’s not in the columns section.
Is this an inherent limitation of the documentation system?
It’s a lack in our docs. Some of the options there can be used on all the levels (instance
> columns
> cells
) but some work only for the instance (like fillHandle
).