{hero}

searchPanes.filterChanged

自:SearchPanes 1.2.0

在做出选择时更新标题文字的功能。
请注意 - 此属性需要适用于 DataTables 的 SearchPanes 扩展。

说明

此选项是对 searchPanes.filterChanged 的别名,在使用 DataTables 2+ 时应优先使用它。它可以用于配置 SearchPanes,而不管窗格如何插入到文档中 (layoutsearchPanes)。

有关此选项的完整详细信息,请参阅 searchPanes.filterChanged 的文档。

类型

功能 searchPanes.filterChanged(count)

参数

示例

设置自定义元素的文字

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
new DataTable('#myTable', {
    layout: {
        top1: 'searchPanes'
    },
    searchPanes: {
        filterChanged: function (count) {
            $('.SPDetails').text(
                this.i18n(
                    'searchPanes.collapse',
                    { 0: 'Advanced filter', _: 'Advanced filter (%d)' },
                    count
                )
            );
        }
    }
});

Comments (0)

No comments posted for this page yet. Be the first to contribute!

Post new comment

Contributions in the form of tips, code snippets and suggestions for the above material are very welcome. To post a comment, please use the form below. Text is formatted by Markdown.

To post comments, please sign in to your DataTables account, or register:

Any questions posted here will be deleted without being published.
Please post questions in the Forums. Comments are moderated.