Row details

Row details

Alexandr45Alexandr45 Posts: 30Questions: 1Answers: 3
edited October 2020 in Free community support

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>'

Replies

  • colincolin Posts: 15,237Questions: 1Answers: 2,599

    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

  • Alexandr45Alexandr45 Posts: 30Questions: 1Answers: 3

  • kthorngrenkthorngren Posts: 21,173Questions: 26Answers: 4,923

    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 change d[4] to something like d.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

  • Alexandr45Alexandr45 Posts: 30Questions: 1Answers: 3

    You understand me correctly, but it doesn't work for me

    d.geo_regions.name.join('<br>')

  • kthorngrenkthorngren Posts: 21,173Questions: 26Answers: 4,923

    but it doesn't work for me

    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

This discussion has been closed.