new TableTools initialization

new TableTools initialization

jack17jack17 Posts: 2Questions: 1Answers: 0
edited February 2014 in TableTools
Hello,
I saw a previous discussion about the alternate tabletools initialization.
http://datatables.net/forums/discussion/comment/49027

However, I followed allan's responses by changing it to aButtons and sExtends, but apparently I still get the 5 default buttons.
http://debug.datatables.net/ivatiz

Any pointers would be appreciated. Thanks in advance.


[code]
var oTableTools = new TableTools( oTable, {
"aButtons": [
"csv",
"xls"
]
} );
$('#example').before( oTableTools.dom.container );
[/code]

Replies

  • allanallan Posts: 61,683Questions: 1Answers: 10,099 Site admin
    Odd - that looks like it should work. Example: http://live.datatables.net/eZoc/1/edit . I've used `new $.fn.dataTable.TableTools` and `fnContainer()` to get the container as per this example: http://next.datatables.net/release-datatables/extensions/TableTools/examples/new_init.html

    Allan
This discussion has been closed.