searchPanes.filterChanged
自:SearchPanes 1.2.0
在做出选择时更新标题文字的功能。
请注意 - 此属性需要适用于 DataTables 的 SearchPanes 扩展。
说明
此选项是对 searchPanes.filterChanged
的别名,在使用 DataTables 2+ 时应优先使用它。它可以用于配置 SearchPanes,而不管窗格如何插入到文档中 (layout
或 searchPanes
)。
有关此选项的完整详细信息,请参阅 searchPanes.filterChanged
的文档。
类型
示例
设置自定义元素的文字
12345678910111213141516new
DataTable(
'#myTable'
, {
layout: {
top1:
'searchPanes'
},
searchPanes: {
filterChanged:
function
(count) {
$(
'.SPDetails'
).text(
this
.i18n(
'searchPanes.collapse'
,
{ 0:
'Advanced filter'
, _:
'Advanced filter (%d)'
},
count
)
);
}
}
});
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.