• Resolved James Barr

    (@james-barr)


    Hi Tobias,

    Thanks again.
    I am unsure how to convert or use the code examples from the Datatables for Tabletools website.
    If you could provide where it needs to be placed and the language it needs to be translated to.
    I had success in editing the php file for hiding the csv icon etc. So I can follow the instruction.
    I am a noob at this code but i can see its not the same as in the php file.
    example:
    https://www.datatables.net/release-datatables/extras/TableTools/pdf_message.html
    $(document).ready( function () {
    $(‘#example’).dataTable( {
    “sDom”: ‘T<“clear”>lfrtip’,
    “oTableTools”: {
    “aButtons”: [
    “copy”,
    “csv”,
    “xls”,
    {
    “sExtends”: “pdf”,
    “sPdfOrientation”: “landscape”,
    “sPdfMessage”: “Your custom message would go here.”
    }
    “print”
    ]
    }
    } );
    } );

    https://www.ads-software.com/extend/plugins/tablepress/

Viewing 1 replies (of 1 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi James,

    similar as to the changes with the buttons, and as in the other thread about TableTools, you’ll have to modify line 60 of the file tablepress-datatables-tabletools.php with these new parameters.

    Regards,
    Tobias

Viewing 1 replies (of 1 total)
  • The topic ‘TableTools -Code to translate from developer examples’ is closed to new replies.