can I set the table class in the options?

can I set the table class in the options?

gbraultgbrault 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

  • allanallan Posts: 63,482Questions: 1Answers: 10,467 Site admin

    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

  • gbraultgbrault Posts: 7Questions: 2Answers: 0

    Thanks Allan

Sign In or Register to comment.