Similar column format for datatable

Hello,

I have to make many similar tables and many columns will have either of the following format:

{ id:“varA”,
header:[
{text:“varA”, css:“multiline”},
{content:“numberFilter”}],
editor: “text”,
width:100,
sort:‘int’},
{ id:“varB”,
header:[null,
{text:“varB”, css:“multiline”, height: 60},
{content:“textFilter”}],
editor: “text”,
width:100,
sort:‘string’},

Is there a way to make these into templates such that for each column, I only have to specify the 1) id, and 2) header text name instead of having to copy these over and over again?

you can implement some column factory
https://snippet.webix.com/t8ppkoi1

Thanks! That worked to some extent.
Is there a way to define only the header text?

Right now, I would still need to have this entire part defined again to get it to show up.
header:[{text:“ID”, css:“multiline”, height:90}, {content:“textFilter”}]

https://snippet.webix.com/vt9eh1ek

Never mind, I got it to work. Thank you for the tip on using extend!