angular 数据表的水平滚动条问题
horizontal scrollbar issue for angular dataTables
我正在使用 angular 需要提供水平滚动条的数据表。
我使用以下代码提供了获取水平滚动条的选项。
$scope.dtOptions = DTOptionsBuilder.newOptions().withDOM('scrollX', '100%');
但是它不起作用。
我没有找到任何文档来获得水平滚动。有谁知道吗
我应该如下调用来提供水平滚动条:
$scope.dtOptions = DTOptionsBuilder.newOptions().withOption('scrollX', '100%');
DTOptionsBuilder.newOptions()
.withOption('responsive', true)
.withOption('scrollX', 'auto')
.withOption('scrollCollapse', true)
.withOption('autoWidth', false);
将解决 header 问题。
非常简单:
DTOptionsBuilder.newOptions()
.withOption("scrollX", true)
我正在使用 angular 需要提供水平滚动条的数据表。
我使用以下代码提供了获取水平滚动条的选项。
$scope.dtOptions = DTOptionsBuilder.newOptions().withDOM('scrollX', '100%');
但是它不起作用。 我没有找到任何文档来获得水平滚动。有谁知道吗
我应该如下调用来提供水平滚动条:
$scope.dtOptions = DTOptionsBuilder.newOptions().withOption('scrollX', '100%');
DTOptionsBuilder.newOptions()
.withOption('responsive', true)
.withOption('scrollX', 'auto')
.withOption('scrollCollapse', true)
.withOption('autoWidth', false);
将解决 header 问题。
非常简单:
DTOptionsBuilder.newOptions()
.withOption("scrollX", true)