Attr option on Button extension does not work

Attr option on Button extension does not work

marcusorjamesmarcusorjames Posts: 1Questions: 1Answers: 0

Following the documentation I'm adding attrs as follows:

$('#example').DataTable( {
        dom: 'Bfrtip',
        buttons: [
           {
               extend: 'print',
               footer: false,
               exportOptions: {
                   stripHtml: false
               },
               attr: {
                    id: "test"
               }
           }        
        ]      
    } );

But the attribute is not being added to the button.

Please see this js fiddle

Answers

Sign In or Register to comment.