Different data for the different data types, filter, display, type or sort. What does 'type' do?

Different data for the different data types, filter, display, type or sort. What does 'type' do?

kmd1970kmd1970 Posts: 36Questions: 8Answers: 1
edited August 2016 in DataTables 1.10

This is probably an easy question.

When using columns.data, Datatables allows us to use different data for the different data types requested, _ filter sort display type

I understand the purpose of _ filter sort display,

but what is the purpose of type?

Example:

 "data": {
 "_": "phone_for_default",
 "filter": "phone_for_filter",
 "display": "phone_for_display",
 "sort": "phone_for_sort",
 "type": "phone_for_type"   // where is this value used?
 }

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 61,744Questions: 1Answers: 10,111 Site admin
    Answer ✓

    For DataTables' type detection. Basically it needs to know what sorting type (and potentially filtering type) to apply to the column.

    Allan

This discussion has been closed.