can I set the table class in the options?
can I set the table class in the options?
gbrault
Posts: 7Questions: 2Answers: 0
I have table_options setup in another part of my code and I create the table with:
let tableElement = document.createElement('table');
tableElement.classList.add('display');
this.$el.appendChild(tableElement); // Append the new table element into the component's root
this.table = new DataTable(tableElement, table_options)
I wonder if I could set the display class within the table_options?
Answers
No - that isn't an option that is available in the configuration options I'm afraid.
classList.add
is the way to do it.Allan
Thanks Allan