Hello everyone,
I have created a table using datatable serverside.
In my columnDef, I define this columns :
{
"render": function ( data, type, row ) {
return '<a class="js-popin" href="{% url 'main:client_info' %}" data-popin-size="big" data-popin-type="card"><i class="c-fonticon__icon-plus"></i></a>'
},
"targets": 10,
orderable:false,
},
I can select a row by this way :
$('#table_client tbody').on( 'dblclick', 'tr', function () {
var id = table.row( table.$(this) ).data().id;
alert( 'You clicked on '+id+'\'s row' );
} );
What I would like to do is trigger the row button on double click on the corresponding row.
Is it something possible ?