2

在 JavaScript 中,我有

$scope.dtOptionsCandidate = DTOptionsBuilder.newOptions()
    .withColReorder()
    .withLightColumnFilter({
        1: {"type": "text"},
        2: {"type": "text"},
        3: {"type": "text"}
    });

与其他选项。在 HTML 中,我有一个包含四列的表格。当我不移动列时它运行良好。但是,当列移动时,搜索框无法正常工作。有什么解决办法吗?

这是 Plunkr:http ://plnkr.co/edit/uPv8FoUrJkQWnEaE2AQY?p=preview

script.js 具有列移动逻辑。

添加 .withLightColumnFilter 函数后,这是我的 Plunkr:http ://plnkr.co/edit/Y6qTGzNWOnGGCYS3f3yi?p=preview

script.js 具有 .withLightColumnFilter 实现

正如您在 Web 控制台中看到的,我有错误,无法继续前进。

4

1 回答 1

0

您需要用户<script>按正确顺序调用。

于 2016-02-02T15:01:27.013 回答