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