Seemingly useless function argument in tuto "Parent / child editing in child rows"
Seemingly useless function argument in tuto "Parent / child editing in child rows"

Hello,
I tried the tutorial on how to create child rows (https://www.datatables.net/blog/2019-01-11), which works fine. However, I have a question. In the section "Chid table", we have this line of code:
createChild(row, 'child-table'); // class is for background colour
But in the next section, this function's signature is
function createChild ( row )
,
with no use of the child-table class param. Is this an oversight or am I missing something?
Best regards,
Alex
This discussion has been closed.
Replies
Yep, good spot. It's mistake on the page. It was corrected in the final code - see the link at the bottom of the blog post. I'll update the blog post - thanks for pointing out.
Colin