Transform show value in depend of field type

Transform show value in depend of field type

ashl1ashl1 Posts: 18Questions: 5Answers: 1

Does DT supports field type or field type plugins to transform showed value got from AJAX. For example - date conversion, depend on the locale, etc. How could I do it simple?

This question has an accepted answers - jump to answer

Answers

  • tangerinetangerine Posts: 3,365Questions: 39Answers: 395
    Answer ✓
  • ashl1ashl1 Posts: 18Questions: 5Answers: 1

    Thank you for the quick response.
    As I understand there is no way to create plugin for specified type. As I understand the simplest way for that is to define the transform function and explicitly set it for the columns.

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin

    That is correct. The column type information is not currently passed into the rendering function - although that is a good candidate for a future option in the meta parameter of the columns.render option. I will look into adding that - thanks for the suggestion.

    Allan

This discussion has been closed.