Is there a way to express the colHeader label in the columns setting?

Tags: #<Tag:0x00007f8b19df3e40>

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.

You can use title inside columns.

Here’s an example https://jsfiddle.net/handsoncode/wcof1kvd/

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).

Documentation is hard :expressionless: