Title/Caption in copy to clipboard?

Title/Caption in copy to clipboard?

todtod Posts: 4Questions: 0Answers: 0
edited August 2011 in TableTools
Hi, is there any way to extend the copy to clipboard to insert a title ?
Maybe like sTitle?

{
"sExtends": "copy",
"sTitle": "Overview",
"sButtonText": "Copy to Clipboard",
"sButtonClass": "copy-to-clipboard",
"sButtonClassHover": "copy-to-clipboard-hovering",
"mColumns": [1 ,2, 3, 4, 5]
}

Replies

  • allanallan Posts: 63,489Questions: 1Answers: 10,470 Site admin
    There certainly is - you need to override fnClick ( http://datatables.net/extras/tabletools/button_options#fnClick ) to add the message you want - the default fnClick can be seen here: https://github.com/DataTables/TableTools/blob/master/media/js/TableTools.js#L2231 . Just prefix the text being sent to Flash with whatever you want.

    Regards,
    Allan
This discussion has been closed.