The documentation on Renderers is out of date

The documentation on Renderers is out of date

hodoninskahodoninska Posts: 11Questions: 2Answers: 0

I think that the documentation on Renderers is out of date. The 4th parameter (meta) which is passed to the function is missing. See https://datatables.net/manual/data/renderers

Answers

  • kthorngrenkthorngren Posts: 20,150Questions: 26Answers: 4,736

    The columns.render documentation documents all the parameters. With Javascript you don't need to call a function with all the arguments. So if you aren't using the meta parameter you don't to define it as a parameter. meta will be undefined in the function if you don't define it.

    Kevin

  • hodoninskahodoninska Posts: 11Questions: 2Answers: 0

    Thanks for the reply. I realise that parameters don't have to be passed with JS and that the other documentation is correct, I just thought it might be slightly confusing for someone less familiar with the language. I know when I started writing JS I found the 'flexibility' very confusing and therefore documentation that didn't show all of the possible parameters would have led me to try both variations if I was struggling to make something work.

This discussion has been closed.