language.stateRestore.creationModal.paging
自:StateRestore 1.0.0 起
設定在建立模式中分頁核取方塊標籤的文字。
請注意 - 此屬性需要 DataTables 的 StateRestore 擴充功能。
說明
此字串會顯示在核取方塊旁邊的標籤中,該核取方塊可切換在建立狀態時顯示的建立模式內的分頁狀態儲存。
此處設定的值會傳遞到 i18n()
函式。
類型
預設
- 值:
分頁
範例
變更分頁核取方塊標籤的文字
new DataTable('#myTable', {
language: {
stateRestore: {
creationModal: {
paging: 'Pages:'
}
}
},
layout: {
topStart: {
buttons: [
{
extend: 'createState',
config: {
creationModal: true,
toggle: {
paging: true
}
}
},
'savedStates'
]
}
}
});
相關
以下選項直接相關,在您的應用程式開發中也可能很有用。