Grouping error
Grouping error
Alex2019
Posts: 62Questions: 9Answers: 0
in DataTables
Hello everyone
I'm having trouble with this code to group column 0
I get an error, sorry but I'm just starting
This question has accepted answers - jump to:
This discussion has been closed.
Answers
Your Javascript isn't valid. You've got the
rowGroup
property outside of the DataTables initialisation object. See the manual for how to combine options.With that fixed, the code runs: http://live.datatables.net/donolavo/4/edit .
Allan
Btw, it is worth running a linter (ESLint) or a formatter (Prettier) to be able to easily catch syntax errors such as that. This is how the code looks properly indented http://live.datatables.net/lavicave/1/edit .
Allan
Thank you allan
also for Prettier