Is it possible to add a custom property to the Column object for modal display?

Is it possible to add a custom property to the Column object for modal display?

mowglimowgli Posts: 1Questions: 1Answers: 0

I'm hoping to add a custom property to columns to simplify display logic when displaying the full row details in a modal (all of my tables are responsive and hide columns based on viewport size). I'm using the code found in the Modal Details Display example and currently the only properties available with each col object when looping through the columns are:

  • columnIndex
  • data
  • hidden
  • rowIndex
  • title

I've tried searching through the documentation, but haven't found any way to add new properties to each column via HTML5 data-attributes or columns options when initializing the table.

This discussion has been closed.