searchPanes.i18n.countFiltered
自:SearchPanes 1.0.0 起
設定在搜尋時顯示於計數欄中的訊息。
請注意 - 此屬性需要 DataTables 的 SearchPanes 擴充功能。
描述
此選項是 searchPanes.i18n.countFiltered
的別名,當使用 DataTables 2+ 時應優先使用。無論窗格如何插入到文件中(layout
或 searchPanes
),它都可以用於配置 SearchPanes。
請參考 searchPanes.i18n.countFiltered
文件以獲取此選項的完整詳細資訊。
類型
預設值
- 值:
{shown} ({total})
searchPanes.i18n.countFiltered
參數的預設值為 {shown} ({total})
。
範例
變更 viewTotal 的訊息:
new DataTable('#myTable', {
layout: {
top1: 'countFiltered'
},
searchPanes: {
viewTotal: true,
i18n: {
count: '{total} found',
countFiltered: '{shown} ({total})'
}
}
});
相關
以下選項直接相關,可能在您的應用程式開發中也很有用。