Copy button in each row or when click on a row
Copy button in each row or when click on a row
fabianopall
Posts: 7Questions: 1Answers: 0
Dear everybody,
I would like to add a copy button/linl into clipboard button for each row or when I would like to copy the row when I click on it.
Actually I added the button on top of the datatable
[code]
"oTableTools": {
"sRowSelect": "single",
"aButtons": [
{ "sExtends": "editor_create", "editor": editor },
{ "sExtends": "editor_edit", "editor": editor },
{ "sExtends": "editor_remove", "editor": editor },
{ "sExtends": "copy",
"bSelectedOnly": true,
"bHeader": false,
"mColumns": [1, 2, 3]
}
],
"sSwfPath": "js/copy_csv_xls_pdf.swf"
}
[/code]
but I would like to copy the selected row when I click on the row itself. I spot the event and tried but without any good results
[code]
$("#address").on('click','tr',function(event) {
$('DTTT_button_copy').click();
}
);
[/code]
After a day of search I almost gave up. Can someone help me?
thanks
F
I would like to add a copy button/linl into clipboard button for each row or when I would like to copy the row when I click on it.
Actually I added the button on top of the datatable
[code]
"oTableTools": {
"sRowSelect": "single",
"aButtons": [
{ "sExtends": "editor_create", "editor": editor },
{ "sExtends": "editor_edit", "editor": editor },
{ "sExtends": "editor_remove", "editor": editor },
{ "sExtends": "copy",
"bSelectedOnly": true,
"bHeader": false,
"mColumns": [1, 2, 3]
}
],
"sSwfPath": "js/copy_csv_xls_pdf.swf"
}
[/code]
but I would like to copy the selected row when I click on the row itself. I spot the event and tried but without any good results
[code]
$("#address").on('click','tr',function(event) {
$('DTTT_button_copy').click();
}
);
[/code]
After a day of search I almost gave up. Can someone help me?
thanks
F
This discussion has been closed.