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