1
I’m using the Datatable plugin (https://l-lin.github.io/angular-datatables). And I need to make the export buttons to be sub-keys,where there will be an export icon and clicking this will be listed ( below ) the options ( CSV, PRINT, XLS).
It follows below the code I am using, but the same does not work the subitens, but the main button yes.
$scope.dtOptions = DTOptionsBuilder.newOptions()
.withDOM('<"html5buttons"B>lTfgitp')
.withButtons([
'copy',
'print',
{'sExtends': 'collection',
'sButtonText': 'Save',
'aButtons': ['csv', 'xls', 'pdf']
}
])
.withOption('info',false)
.withOption('lengthChange',false);
}
Thanks for your help.