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?
kmd1970
Posts: 36Questions: 8Answers: 1
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
This discussion has been closed.
Answers
For DataTables' type detection. Basically it needs to know what sorting type (and potentially filtering type) to apply to the column.
Allan