sType html and then numeric/date/string
sType html and then numeric/date/string
owenrichard
Posts: 2Questions: 0Answers: 0
Is it possible to use a combined sType of html and then numeric, date or string?
I.e. I have numeric, date, and string columns in my table, but all of them are surrounded by tags. Is it possible to strip the tags first and then define a type of either numeric, string, or date?
Thanks,
Richard
I.e. I have numeric, date, and string columns in my table, but all of them are surrounded by tags. Is it possible to strip the tags first and then define a type of either numeric, string, or date?
Thanks,
Richard
This discussion has been closed.
Replies
It's not possible to combine types, but it's certainly possible to do what you are looking for - just in a slightly different manner - using the sorting plug-ins:
- Plug-ins: http://datatables.net/plug-ins/sorting
- Example use: http://datatables.net/examples/api/sorting_plugin.html
- Dev docs: http://datatables.net/development/sorting
There is already a plug-in (and a type-detection plug-in I added for it yesterday) for HTML with numbers. And there is a bunch of other plug-ins for sorting various other data types.
Regards,
Allan
Richard
I've been to the working links above but can't get past the final hurdle here.
Regards,
Martin