Can I use a default column renderer without specifying targets?
Can I use a default column renderer without specifying targets?
elewine
Posts: 1Questions: 1Answers: 0
Hi,
I'd like to use a specific column renderer for some columns (in this case just column 0), but then use a default renderer for all other columns in the table. But, my table can have a variable number of columns. Is there a way to specify that a renderer be used for all columns not covered by any other renderer? For example:
columnDefs: [
{
render: specificRenderer,
targets: [0]
},
{
render: defaultRenderer,
targets: <some way to say all columns not covered
by specific renderer?>
},
],
I could dynamically figure out the columns each time I instantiate the table, but it would be nice to not have to bother.
thanks.
This discussion has been closed.