Default render function for certain type?
Default render function for certain type?
Koopz
Posts: 1Questions: 1Answers: 0
I've looked around for a bit but couldn't find anything...
Let's say i define a custom type that detects dates formatted in Y-m-d.
I already found a plugin for converting the date to whatever format i'd like it to have: https://datatables.net/plug-ins/dataRender/datetime
With this plugin however you're still required to pass the render function in the columnDefs.
Can you somehow setup default render functions for types without having to define them in columnDefs?
This discussion has been closed.
Answers
Currently no - the renderer is no type dependent. I can see how that would be useful though and will have a think about how that might be incorporated.
Allan