language.stateRestore.creationModal.button
自:StateRestore 1.0.0
設定 StateRestore 建立模式按鈕內的文字。
請注意 - 此屬性需要 DataTables 的 StateRestore 擴充功能。
描述
此字串顯示在建立狀態時顯示的建立模式中的確認按鈕內。
此處設定的值會透過 i18n()
函式傳遞。
類型
預設值
- 值:
建立
範例
變更建立確認按鈕內的文字
new DataTable('#myTable', {
language: {
stateRestore: {
creationModal: {
button: 'Create a new state'
}
}
},
layout: {
topStart: {
buttons: [
{
extend: 'createState',
config: {
creationModal: true
}
},
'savedStates'
]
}
}
});
相關
以下選項直接相關,也可能在您的應用程式開發中很有用。