Rendering all cells in a column as TH from Ajax data source

Rendering all cells in a column as TH from Ajax data source

fuzzybadfuzzybad Posts: 2Questions: 1Answers: 0

Description of problem:
Hi, we have checked the documentation and still looking for a solution to this issue. We are using DataTables to pull data using Ajax method. Objective is to make all cells in one column TH elements, as this is required for accessibility compliance. Perhaps we can accomplish this using a renderer method? Please advise.

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,213Questions: 1Answers: 10,415 Site admin
    Answer ✓

    Hi,

    Use columns.cellType to tell DataTables if you want it to create th cell types for a column.

    Allan

  • fuzzybadfuzzybad Posts: 2Questions: 1Answers: 0

    Thank you, will try this!

This discussion has been closed.