Expand row not working with data function
Expand row not working with data function
peter-werk
Posts: 8Questions: 4Answers: 0
I have a problem with expand row function, tried many solutions and nothing move my row
https://jsfiddle.net/so4be3yt/3/
////
function format ( d ) { // `d` is the original data object for the row return 'Full name: | '+ ''+d.name+' | '+ '
Extension number: | '+ ''+d.extn+' | '+ '
Extra info: | '+ 'And any further details here (images etc)... | '+ '
This question has an accepted answers - jump to answer
Answers
You have a syntax error:
I fixed that but now this error appears:
You need to load regular jQuery not jQuery.slim for ajax. Please fix the test case so it runs to demonstrate the problem.
Kevin
Below is full page with the problem as its very hard to recreate this case in jsfilde data is loaded from SQlLite db
http://drip-env.eba-rnrggvcq.eu-west-3.elasticbeanstalk.com/
And in the console you can see the full code
Looks like the problem is with this part of the code code:
Looks like you are missing a closing
}
. I think it should look more like this:Kevin
Sorry Im lost with the semicolons tried validators and nothing working I'm totaly lost with this
I was able to recreate my table with the problem here https://jsfiddle.net/b3cavdn4/24/
Your code was badly formatted, the click event was in another function! I've tidied it up and it's working here as expected: https://jsfiddle.net/m8xL0d9c/
Colin