get data row

get data row

baterista41baterista41 Posts: 5Questions: 2Answers: 0

I have a list of stocks in each row, this list has (update, edit, delete), I get the data row when selecting an item from the list to create a custom modal and send that data, much like this tutorial https://editor.datatables.net/examples/styling/envelopeInTable.html

{
render: function (data, type, row) {
return "<td class = 'text-center'>
<Ul class = 'icons-list'>
<Li class = 'dropdown'> Update </ li>
<Li> Block </ li>
<Li> Delete </ li>
</ Ul>
</ Td> ";
}

view works perfect, but I want to get the data by selecting one of these items

Replies

  • allanallan Posts: 63,210Questions: 1Answers: 10,415 Site admin

    I'm afraid I'm not quite understanding what you are looking for. Do you want an event listener on your dropdown list items? You could just use a standard jQuery event listener for that.

    Allan

This discussion has been closed.