ソースを参照

renamed table option

Dustin Utecht 6 年 前
コミット
44dd6dcfeb
3 ファイル変更8 行追加6 行削除
  1. 6 4
      site/docs/api/table-options.md
  2. 1 1
      src/bootstrap-table.js
  3. 1 1
      src/constants/index.js

+ 6 - 4
site/docs/api/table-options.md

@@ -1114,19 +1114,21 @@ The table options are defined in `jQuery.fn.bootstrapTable.defaults`.
 
 - **Example:** [Checkbox Header](https://examples.bootstrap-table.com/#options/checkbox-header.html)
 
-## maintainSelected
+## maintainMetaData
 
-- **Attribute:** `data-maintain-selected`
+- **Attribute:** `data-maintain-meta-data`
 
 - **Type:** `Boolean`
 
 - **Detail:**
 
-  Set `true` to maintain selected rows on change page and search.
+  Set `true` to maintain the following meta data on change page and search
+   * selected rows
+   * hidden rows
 
 - **Default:** `false`
 
-- **Example:** [Maintain Selected](https://examples.bootstrap-table.com/#options/maintain-selected.html)
+- **Example:** [Maintain Meta Data](https://examples.bootstrap-table.com/#options/maintain-selected.html)
 
 ## multipleSelectRow
 

+ 1 - 1
src/bootstrap-table.js

@@ -1080,7 +1080,7 @@ class BootstrapTable {
       return
     }
 
-    if (!this.options.maintainSelected) {
+    if (!this.options.maintainMetaData) {
       this.resetRows()
     }
 

+ 1 - 1
src/constants/index.js

@@ -181,7 +181,7 @@ const DEFAULTS = {
   },
   singleSelect: false,
   checkboxHeader: true,
-  maintainSelected: false,
+  maintainMetaData: false,
   multipleSelectRow: false,
   uniqueId: undefined,
   cardView: false,