Adding td classes when using .rows.add()
Adding td classes when using .rows.add()
robert_sinton
Posts: 1Questions: 1Answers: 0
I'm using the className option for columnDefs when initialising my tables, but I've noticed that if I add row data using .rows.add(), the TDs in those rows don't get the classnames added.
Is there a simple way to ensure this happens? The end goal is to make some columns in my table right-aligned, but the tables start out empty when initialised, and data is added dynamically later.
This discussion has been closed.