浏览代码

Update docs and changelog.

zhixin 10 年之前
父节点
当前提交
58caf3984b

+ 3 - 1
CHANGELOG.md

@@ -6,9 +6,11 @@
 - [enh] Added state saving for visible columns and the ability to use extension with multiple simultaneous tables.
 - [enh] Added `ajax` option to replace jquery ajax method.
 - [enh] Added `resetWidth` method to reset header and footer width.
-- [enh] Added keyevents, mobile extensions.
+- [enh] Added keyevents, mobile, filter control extensions.
 - [enh] Added `onToggle`, `onColumnSearch` events.
 - [enh] Added `getScrollPosition` method.
+- [bug] Fix double header bug after table show from hidden.
+- [bug] Fix #279: scrollWidth bug.
 
 ### 1.7.0
 

+ 0 - 17
docs/_i18n/en/extensions/README.md

@@ -1,17 +0,0 @@
-# Table Filter
-
-Use Plugin: [bootstrap table filters](https://github.com/lukaskral/bootstrap-table-filter)
-
-## Usage
-
-```html
-<script src="extensions/filter/bootstrap-table-filter.js"></script>
-```
-
-## Options
-
-### showFilter
-
-* type: Boolean
-* description: set true to show filter menu.
-* default: `false`

+ 31 - 0
docs/_i18n/en/extensions/filtercontrol.md

@@ -0,0 +1,31 @@
+# Table Filter Control
+
+Use Plugin: [bootstrap-table-filtercontrol](https://github.com/wenzhixin/bootstrap-table/tree/master/src/extensions/filtercontrol)
+
+## Usage
+
+```html
+<script src="extensions/filtercontrol/bootstrap-table-filtercontrol.js"></script>
+```
+
+## Options
+
+### filterControl
+
+* type: Boolean
+* description: Set true to add an `input` or `select` into the column.
+* default: `false`
+
+## Column options
+
+### filterControl
+
+* type: String
+* description: Set `input` or `select` to add one of those element into column.
+* default: `undefined`
+
+## Events
+
+### onColumnSearch(column-search.bs.table)
+
+* Fired when we are searching into the column data

+ 0 - 17
docs/_i18n/es/extensions/README.md

@@ -1,17 +0,0 @@
-# Table Filter
-
-Use Plugin: [bootstrap table filters](https://github.com/lukaskral/bootstrap-table-filter)
-
-## Usage
-
-```html
-<script src="extensions/filter/bootstrap-table-filter.js"></script>
-```
-
-## Options
-
-### showFilter
-
-* type: Boolean
-* description: set true to show filter menu.
-* default: `false`

+ 31 - 0
docs/_i18n/es/extensions/filtercontrol.md

@@ -0,0 +1,31 @@
+# Table Filter Control
+
+Use Plugin: [bootstrap-table-filtercontrol](https://github.com/wenzhixin/bootstrap-table/tree/master/src/extensions/filtercontrol)
+
+## Usage
+
+```html
+<script src="extensions/filtercontrol/bootstrap-table-filtercontrol.js"></script>
+```
+
+## Options
+
+### filterControl
+
+* type: Boolean
+* description: Set true to add an `input` or `select` into the column.
+* default: `false`
+
+## Column options
+
+### filterControl
+
+* type: String
+* description: Set `input` or `select` to add one of those element into column.
+* default: `undefined`
+
+## Events
+
+### onColumnSearch(column-search.bs.table)
+
+* Fired when we are searching into the column data

+ 0 - 17
docs/_i18n/zh-cn/extensions/README.md

@@ -1,17 +0,0 @@
-# Table Filter
-
-Use Plugin: [bootstrap table filters](https://github.com/lukaskral/bootstrap-table-filter)
-
-## Usage
-
-```html
-<script src="extensions/filter/bootstrap-table-filter.js"></script>
-```
-
-## Options
-
-### showFilter
-
-* type: Boolean
-* description: set true to show filter menu.
-* default: `false`

+ 31 - 0
docs/_i18n/zh-cn/extensions/filtercontrol.md

@@ -0,0 +1,31 @@
+# Table Filter Control
+
+Use Plugin: [bootstrap-table-filtercontrol](https://github.com/wenzhixin/bootstrap-table/tree/master/src/extensions/filtercontrol)
+
+## Usage
+
+```html
+<script src="extensions/filtercontrol/bootstrap-table-filtercontrol.js"></script>
+```
+
+## Options
+
+### filterControl
+
+* type: Boolean
+* description: Set true to add an `input` or `select` into the column.
+* default: `false`
+
+## Column options
+
+### filterControl
+
+* type: String
+* description: Set `input` or `select` to add one of those element into column.
+* default: `undefined`
+
+## Events
+
+### onColumnSearch(column-search.bs.table)
+
+* Fired when we are searching into the column data

+ 3 - 1
docs/extensions.md

@@ -19,4 +19,6 @@ lead: pages.extensions.lead
 
 {% tf extensions/keyevents.md %}
 
-{% tf extensions/mobile.md %}
+{% tf extensions/mobile.md %}
+
+{% tf extensions/filtercontrol.md %}