How to open a window with the data information of the clicked on row?

How to open a window with the data information of the clicked on row?

ynynloxxynynloxx Posts: 14Questions: 6Answers: 0

Hello people,

I am currently trying to code an application with django, where I have a list of articles listed through datatable. My question is how can I get to open a new tab, after I clicked on a row of the article listing and also have the information of the particular article on the newly opened window?

Kind regards
Yin-yin

Answers

  • daduffydaduffy Posts: 31Questions: 5Answers: 1

    I would simply add an event to the row.

    $('dataTable ID').on('click', 'tbody tr', function() {
      //do somerthing with table.row(this).data()
    });
    

    Dave

This discussion has been closed.