language.stateRestore.creationModal.scroller
自:StateRestore 1.0.0 起
設定建立模式中 scroller
核取方塊標籤的文字。
請注意 - 此屬性需要 DataTables 的 StateRestore 擴充套件。
描述
此字串顯示在核取方塊旁邊的標籤中,該核取方塊允許在建立狀態時顯示的建立模式中切換 scroller
狀態儲存。
此處設定的值會通過 i18n()
函式。
類型
預設值
- 值:
捲軸位置
範例
變更捲軸核取方塊標籤的文字
new DataTable('#myTable', {
language: {
stateRestore: {
creationModal: {
scroller: 'Scroller:'
}
}
},
layout: {
topStart: {
buttons: [
{
extend: 'createState',
config: {
creationModal: true,
toggle: {
scroller: true
}
}
},
'savedStates'
]
}
}
});
相關
下列選項直接相關,在您的應用程式開發中也可能很有用。