language.buttons.stateRestore
自: StateRestore 1.0.0
設定 StateRestore stateRestore
分割下拉式按鈕中的文字。
請注意 - 此屬性需要 DataTables 的 StateRestore 擴充功能。
說明
此字串顯示在 StateRestore 的 stateRestore
按鈕中。此按鈕的完整文件位於 renameState
。
此字串中的 %d
符號會被替換為已建立的狀態數量(包含此狀態)。這允許狀態的預設名稱隨著更多狀態的建立而動態變化。
此處設定的值會透過 i18n()
函式傳遞。
類型
預設值
- 值:
State %d
範例
變更 savedStates 按鈕中的文字
new DataTable('#myTable', {
language: {
buttons: {
stateRestore: 'State Number %d'
}
},
layout: {
topStart: {
buttons: ['createState', 'savedStates']
}
}
});
相關
下列選項直接相關,可能對您的應用程式開發也有幫助。