jquery datatables - Tabletools initialization options not applying -


i'm trying add settings datatables/tabletools init reason no matter settings change tabletools default options still show (i.e. copy should > "copy clipboard" , remains "copy"). when click buttons function know it's finding swf. using latest version of tabletools , datatables.

i've tried both old hungarian notation:

"otabletools": { "abuttons": [ {"sextends": "copy", "sbuttontext": "copy clipboard", "mcolumns": [1,2,3,4,5]}, {"sextends": "print"}, {"sextends": "csv", "columns": [1,2,3,4,5]}, {"sextends": "pdf", "columns": [1,2,3,4,5]}, {"sextends": "xls", "columns": [1,2,3,4,5]} ] }

as as

"tabletools": { "buttons": [ {"extends": "copy", "buttontext": "copy clipboard", "columns": [1,2,3,4,5]}, {"extends": "print"}, {"extends": "csv", "columns": [1,2,3,4,5]}, {"extends": "pdf", "columns": [1,2,3,4,5]}, {"extends": "xls", "columns": [1,2,3,4,5]} ] }

am doing wrong?

thanks

proper initialization shown below. see tabletools example demonstration.

$('#example').datatable( {     "dom": 't<"clear">lfrtip',     "tabletools": {         "abuttons": [             {                 "sextends": "copy",                 "sbuttontext": "copy clipboard",                 "mcolumns": [1,2,3,4,5]             },             {                 "sextends": "print"             },             {                 "sextends": "csv",                 "mcolumns": [1,2,3,4,5]             },             {                 "sextends": "pdf",                 "mcolumns": [1,2,3,4,5]             },             {                 "sextends": "xls",                 "mcolumns": [1,2,3,4,5]             }         ]     } } ); 

Comments

Popular posts from this blog

shopping cart - Page redirect not working PHP -

php - How to modify a menu to show sub-menus -

python - Installing PyDev in eclipse is failed -