Row details
Row details
Alexandr45
Posts: 30Questions: 1Answers: 3
Good afternoon. I use https://datatables.net/examples/api/row_details.html. Tell me how you can put
{
data: "geo_regions",
render: "[<br>].name"
},
to the
'<td>'table+d.name+'</td>'
This discussion has been closed.
Replies
We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.
Cheers,
Colin
Colin asked for a test case so we can see what you have to be able to help. A screenshot doesn't show us the data you have.
If you don't want to supply a test case then you should debug the variable
d
in the format() function to see the data structure. I'm guessing you need to changed[4]
to something liked.geo_regions.name.join('<br>')
. If you need further help please build a simple test case with a sample of your data.https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin
You understand me correctly, but it doesn't work for me
d.geo_regions.name.join('<br>')
What happens?
Please build a simple test case that has an example of your data so we can provide specific help.
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin