Button click not firing

Button click not firing

stavstav Posts: 3Questions: 1Answers: 1
edited May 2015 in TableTools

Noob first question :)

I'm just trying to get the alert "Mouse click" from the Button; I must be making a simple mistake because nothing happens when I click it.

Here's my JSFiddle: http://jsfiddle.net/e1h6gvto/2/

$('#example').DataTable( {
    dom: 'T<"clear">t',
    tableTools: {
        sRowSelect: 'os',
        aButtons: ['text']
    },
    "oTableTools": {
        "aButtons": [
            {
                "sExtends": "text",
                "fnClick": function ( nButton, oConfig, oFlash ) {
                    alert( 'Mouse click' );
                }
            }
        ]
    }
} );
This discussion has been closed.