Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angularjs/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angularjs 角度数据表导出按钮不显示_Angularjs_Angular Datatables - Fatal编程技术网

Angularjs 角度数据表导出按钮不显示

Angularjs 角度数据表导出按钮不显示,angularjs,angular-datatables,Angularjs,Angular Datatables,我使用带有导出按钮的插件。我使用收集按钮导出数据,但按钮没有显示,而是在添加按钮选项时,数据表排序和分页选项被禁用。下面是 $scope.vm.dtOptions=DTOptionsBuilder.newOptions() .withOption('order',[0',asc'])) .带按钮([ { 扩展:'集合', 文本:“导出”, 按钮:[ { 扩展:“打印”, 标题:“我的名单” }, { 扩展:“pdfHtml5”, 标题:“我的名单” } ] } ]); 您需要包含必要的js和cs

我使用带有导出按钮的插件。我使用收集按钮导出数据,但按钮没有显示,而是在添加按钮选项时,数据表排序和分页选项被禁用。下面是

$scope.vm.dtOptions=DTOptionsBuilder.newOptions()
.withOption('order',[0',asc']))
.带按钮([
{
扩展:'集合',
文本:“导出”,
按钮:[
{
扩展:“打印”,
标题:“我的名单”
},
{
扩展:“pdfHtml5”,
标题:“我的名单”
}
]
}
]);

您需要包含必要的js和css文件:

<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.2.2/css/buttons.dataTables.min.css">


还需要答案吗?
<script src="/projectName/theme/vendors/angular-datatables/plugins/buttons/angular-datatables.buttons.min.js"></script>