need help to configure event listener

need help to configure event listener

naveen3562003naveen3562003 Posts: 8Questions: 3Answers: 0

Hi Frnds,

I am new to Jquery & Datatables but I have learn lot this week trying my self on datatables various elements. now, that I have already configured event listener as below.

// Add event listener for opening and closing details
$('#example tbody').on('click', 'td.details-control', function () {
var tr = $(this).parents('tr');
var row = table.row( tr );

    if ( row.child.isShown() ) {
        // This row is already open - close it
        row.child.hide();
        tr.removeClass('shown');
    }
    else {
        // Open this row
        row.child( test(row.data()) ).show();
        tr.addClass('shown');
    }
} );

I am looking for some modifications.

1) I want to add a http://jqueryui.com/tabs/ function in the child so that when ever some one opens listener I want to display information as tabs rather then just a expanded body.

So please help me on achieving same.

Answers

This discussion has been closed.