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?

Tagged:

Comments

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!