Could someone let me know why am i getting this error.
Uncaught TypeError: this.movie.setSheetName is not a function
While using the buttons in Angularjs Datatable mentioned here
https://l-lin.github.io/angular-datatables/#/withButtons
Here is the code
$rootScope.dtOptions = DTOptionsBuilder.newOptions()
.withPaginationType('full_numbers')
.withDisplayLength(10)
.withDOM('frtip')
.withBootstrap()
.withBootstrapOptions({
TableTools: {
classes: {
container: 'btn-group',
buttons: {
normal: 'btn btn-danger'
}
}
},
ColVis: {
classes: {
masterButton: 'btn btn-primary'
}
},
pagination: {
classes: {
ul: 'pagination pagination-sm'
}
}
})
.withOption('bLengthChange', false).withButtons([
'copy',
'print',
'excel'
]);