Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82018

Trigger a row button programmaticaly on dblclick

$
0
0

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 ?


Viewing all articles
Browse latest Browse all 82018

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>