Browse Source

Update extensions page.

zhixin 10 years ago
parent
commit
a3feb4cd24
50 changed files with 183 additions and 2055 deletions
  1. 0 56
      docs/_i18n/en/extensions/cookie.md
  2. 0 39
      docs/_i18n/en/extensions/editable.md
  3. 0 35
      docs/_i18n/en/extensions/export.md
  4. 0 51
      docs/_i18n/en/extensions/filter-control.md
  5. 0 17
      docs/_i18n/en/extensions/filter.md
  6. 0 23
      docs/_i18n/en/extensions/flat-json.md
  7. 0 53
      docs/_i18n/en/extensions/group-by.md
  8. 0 24
      docs/_i18n/en/extensions/key-events.md
  9. 0 41
      docs/_i18n/en/extensions/mobile.md
  10. 0 91
      docs/_i18n/en/extensions/multiple-sort.md
  11. 0 13
      docs/_i18n/en/extensions/natural-sorting.md
  12. 0 41
      docs/_i18n/en/extensions/reorder-columns.md
  13. 0 74
      docs/_i18n/en/extensions/reorder-rows.md
  14. 0 66
      docs/_i18n/en/extensions/resizable.md
  15. 0 53
      docs/_i18n/en/extensions/toolbar.md
  16. 0 56
      docs/_i18n/es/extensions/cookie.md
  17. 0 39
      docs/_i18n/es/extensions/editable.md
  18. 0 35
      docs/_i18n/es/extensions/export.md
  19. 0 51
      docs/_i18n/es/extensions/filter-control.md
  20. 0 17
      docs/_i18n/es/extensions/filter.md
  21. 0 23
      docs/_i18n/es/extensions/flat-json.md
  22. 0 53
      docs/_i18n/es/extensions/group-by.md
  23. 0 24
      docs/_i18n/es/extensions/key-events.md
  24. 0 41
      docs/_i18n/es/extensions/mobile.md
  25. 0 91
      docs/_i18n/es/extensions/multiple-sort.md
  26. 0 13
      docs/_i18n/es/extensions/natural-sorting.md
  27. 0 41
      docs/_i18n/es/extensions/reorder-columns.md
  28. 0 74
      docs/_i18n/es/extensions/reorder-rows.md
  29. 0 66
      docs/_i18n/es/extensions/resizable.md
  30. 0 53
      docs/_i18n/es/extensions/toolbar.md
  31. 0 56
      docs/_i18n/zh-cn/extensions/cookie.md
  32. 0 39
      docs/_i18n/zh-cn/extensions/editable.md
  33. 0 35
      docs/_i18n/zh-cn/extensions/export.md
  34. 0 51
      docs/_i18n/zh-cn/extensions/filter-control.md
  35. 0 17
      docs/_i18n/zh-cn/extensions/filter.md
  36. 0 23
      docs/_i18n/zh-cn/extensions/flat-json.md
  37. 0 53
      docs/_i18n/zh-cn/extensions/group-by.md
  38. 0 24
      docs/_i18n/zh-cn/extensions/key-events.md
  39. 0 41
      docs/_i18n/zh-cn/extensions/mobile.md
  40. 0 91
      docs/_i18n/zh-cn/extensions/multiple-sort.md
  41. 0 13
      docs/_i18n/zh-cn/extensions/natural-sorting.md
  42. 0 41
      docs/_i18n/zh-cn/extensions/reorder-columns.md
  43. 0 74
      docs/_i18n/zh-cn/extensions/reorder-rows.md
  44. 0 66
      docs/_i18n/zh-cn/extensions/resizable.md
  45. 0 53
      docs/_i18n/zh-cn/extensions/toolbar.md
  46. 51 0
      docs/data/extensions.json
  47. 81 24
      docs/extensions.md
  48. 17 0
      src/extensions/editable/extension.json
  49. 17 0
      src/extensions/export/extension.json
  50. 17 0
      src/extensions/flat-json/extension.json

+ 0 - 56
docs/_i18n/en/extensions/cookie.md

@@ -1,56 +0,0 @@
-# Table Cookie
-
-Use Plugin: [bootstrap-table-cookie](https://github.com/wenzhixin/bootstrap-table/tree/master/src/extensions/cookie)
-
-## Usage
-
-```html
-<script src="extensions/cookie/bootstrap-table-cookie.js"></script>
-```
-
-## Options
-
-### cookie
-
-* type: Boolean
-* description: Set true to save the state of a table (its paging position, ordering state, records per page).
-* default: `false`
-
-### cookieExpire
-
-* type: String
-* description: You must set this property if cookie option is enable to know when will expire the cookie created. Must use this format: 'number{letter}' like '2h', in the letter position
-               		you can use: 's','mi','h','d','m','y', these means: 'seconds', 'minutes', 'hours', 'days', 'months', 'years'.
-* default: `2h`
-
-### cookiePath
-
-* type: String
-* description: you can tell the browser what path the cookie belongs to. By default, the cookie belongs to the current page.
-* default: `null`
-
-### cookieDomain
-
-* type: String
-* description: This is the website domain, with the www. prefix removed.
-* default: `null`
-
-### cookieSecure
-
-* type: Boolean
-* description: This property keeps cookie communication limited to encrypted transmission, directing browsers to use cookies only via secure/encrypted connections.
-* default: `null`
-
-### cookieIdTable
-
-* type: String
-* description: You must set this property if the cookie property is enabled to set an unique cookie with an identifier for each table in your page or project. You must set this property because we need create cookies with an identifier.
-* default: ``
-
-## This plugin saves
-
-* Sort order
-* Page number
-* Page number from the list
-* Visible columns
-* Search text

+ 0 - 39
docs/_i18n/en/extensions/editable.md

@@ -1,39 +0,0 @@
-# Table Editable
-
-Use Plugin: [x-editable](https://github.com/vitalets/x-editable)
-
-## Usage
-
-```html
-<script src="extensions/editable/bootstrap-table-editable.js"></script>
-```
-
-## Options
-
-### editable
-
-* type: Boolean
-* description: Set false to disabled editable of all columns.
-* default: `true`
-
-## Column options
-
-### editable
-
-* type: Object
-* description: Configuration of x-editable. Full list of options: http://vitalets.github.io/x-editable/docs.html#editable
-* default: `undefined`
-
-## Events
-
-### onEditableInit(editable-init.bs.table)
-
-Fired when all columns was initialized by `$().editable()` method.
-
-### onEditableSave(editable-save.bs.table)
-
-Fired when an editable cell is saved.
-
-## The existing problems
-
-* Editable extension does not support searchable in the select type.

+ 0 - 35
docs/_i18n/en/extensions/export.md

@@ -1,35 +0,0 @@
-# Table Export
-
-Use Plugin: [tableExport.jquery.plugin](https://github.com/hhurz/tableExport.jquery.plugin)
-
-## Usage
-
-```html
-<script src="extensions/export/bootstrap-table-export.js"></script>
-```
-
-## Options
-
-### showExport
-
-* type: Boolean
-* description: set `true` to show export button.
-* default: `false`
-
-### exportDataType
-
-* type: String
-* description: export data type, support: 'basic', 'all', 'selected'.
-* default: `basic`
-
-### exportTypes
-
-* type: Array
-* description: export types, support types: 'json', 'xml', 'png', 'csv', 'txt', 'sql', 'doc', 'excel', 'powerpoint', 'pdf'.
-* default: `['json', 'xml', 'csv', 'txt', 'sql', 'excel']`
-
-### exportOptions
-
-* type: Object
-* description: export [options](https://github.com/hhurz/tableExport.jquery.plugin#options) of `tableExport.jquery.plugin`
-* default: `{}`

+ 0 - 51
docs/_i18n/en/extensions/filter-control.md

@@ -1,51 +0,0 @@
-# Table Filter Control
-
-Use Plugin: [bootstrap-table-filter-control](https://github.com/wenzhixin/bootstrap-table/tree/master/src/extensions/filter-control) </br>
-Dependence if you use the datepicker option: [bootstrap-datepicker](https://github.com/eternicode/bootstrap-datepicker) v1.4.0
-
-## Usage
-
-```html
-<script src="extensions/filter-control/bootstrap-table-filter-control.js"></script>
-```
-
-## Options
-
-### filterControl
-
-* type: Boolean
-* description: Set true to add an `input` or `select` into the column.
-* default: `false`
-
-### filterShowClear
-
-* type: Boolean
-* description: Set true to add a button to clear all the controls added by this plugin
-* default: `false`
-
-
-### filterStrictSearch
-
-* type: Boolean
-* description: Set true to enable the strict search in column.
-* default: `false`
-
-
-## Column options
-
-### filterControl
-
-* type: String
-* description: Set `input`: show an input control, `select`: show a select control, `datepicker`: show a datepicker control.
-* default: `undefined`
-
-### filterDatepickerOptions
-* type: Object
-* description: If the datepicker option is set use this option to configure the datepicker with the native options. Use this way: `data-filter-datepicker-options='{"autoclose":true, "clearBtn": true, "todayHighlight": true}'`.
-* default: `undefined`
-
-## Events
-
-### onColumnSearch(column-search.bs.table)
-
-* Fired when we are searching into the column data

+ 0 - 17
docs/_i18n/en/extensions/filter.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`

+ 0 - 23
docs/_i18n/en/extensions/flat-json.md

@@ -1,23 +0,0 @@
-# Table flat-json
-
-Use Plugin: [bootstrap-table-flat-json](https://github.com/djhvscf/bootstrap-table-flat-json)
-
-## Usage
-
-```html
-<script src="extensions/flat-json/bootstrap-table-flat-json.js"></script>
-```
-
-## Options
-
-### flat
-
-* type: Boolean
-* description: Set true to flat the JSON object.
-* default: `false`
-
-### flatSeparator
-
-* type: String
-* description: Set the default separator between object levels.
-* default: `.`

+ 0 - 53
docs/_i18n/en/extensions/group-by.md

@@ -1,53 +0,0 @@
-# Table group-by
-
-Use Plugin: [bootstrap-table-group-by](https://github.com/djhvscf/bootstrap-table-group-by) </br>
-Dependence: [jquery-treetable](https://github.com/ludo/jquery-treetable/) v3.2.0 </br>
-You must include the bootstrap-table-group-by.css file in order to get the appropriate style
-
-## Usage
-
-```html
-<script src="extensions/group-by/bootstrap-table-group-by.js"></script>
-```
-
-## Options
-
-### groupBy
-
-* type: Boolean
-* description: Set true to group the data by the field passed.
-* default: `false`
-
-### groupByField
-
-* type: String
-* description: Set the field that you want to group the data.
-* default: ``
-
-### groupBySumGroup
-
-* type: Boolean
-* description: Set to True to include a sum row.
-* default: `false`
-
-### groupByInitExpanded
-
-* type: Boolean
-* description: Set to True to expand the first node of the table.
-* default: `false`
-
-## Methods
-
-### expandAll
-
-* Expand all the nodes in the table.
-
-### collapseAll
-
-* Collapse all the nodes in the table.
-
-## Known issues
-
-### OnSort
-
-* When sort options are set to True the group by is not working properly, for now if these properties are set to True the group by extension will be disabled.

+ 0 - 24
docs/_i18n/en/extensions/key-events.md

@@ -1,24 +0,0 @@
-# Table Key Events
-
-Use Plugin: [bootstrap-table-key-events](https://github.com/wenzhixin/bootstrap-table/tree/master/src/extensions/key-events)
-
-## Usage
-
-```html
-<script src="extensions/cookie/bootstrap-table-key-events.js"></script>
-```
-
-## Options
-
-### keyEvents
-
-* type: Boolean
-* description:
-True to enable the key events. The key event list is:
-    * s: It will be focused the search textbox if it is enabled.
-    * r: It will refresh the table if the showRefresh option is enabled.
-    * t: It will toggle the table view if the showToggle option is enabled.
-    * p: It will fires the pagination switch if the showPaginationSwitch is enabled.
-    * left: It will go to prev page if the pagination is true.
-    * right: It will go to next page if the pagination is true.
-* default: `false`

+ 0 - 41
docs/_i18n/en/extensions/mobile.md

@@ -1,41 +0,0 @@
-# Table Mobile
-
-Use Plugin: [bootstrap-table-mobile](https://github.com/wenzhixin/bootstrap-table/tree/master/src/extensions/mobile)
-
-## Usage
-
-```html
-<script src="extensions/mobile/bootstrap-table-mobile.js"></script>
-```
-
-## Options
-
-### mobileResponsive
-
-* type: Boolean
-* description: Set true to change the view between card and table view depending on width and height given.
-* default: `false`
-
-### checkOnInit
-
-* type: Boolean
-* description: Set true to check the window size on init.
-* default: `true`
-
-### minWidth
-
-* type: Integer
-* description: Set the minimum width when the table will change the view.
-* default: `562`
-
-### minHeight
-
-* type: Integer
-* description: Set the minimum height when the table will change the view.
-* default: `undefined`
-
-### columnsHidden
-
-* type: String
-* description: Set the columns fields in this array in order to hide those columns in the cardView mode. Use this way in `data-*` configuration: ` data-columns-hidden="['name', 'description']"` or this way in javascript configuration: `columnsHidden = ['name', 'description']`. 
-* default: `undefined`

+ 0 - 91
docs/_i18n/en/extensions/multiple-sort.md

@@ -1,91 +0,0 @@
-# Table Multiple Sort
-
-Use Plugin: [bootstrap-table-multiple-sort](https://github.com/dimbslmh/bootstrap-table/tree/master/src/extensions/multiple-sort)
-
-## Usage
-
-```html
-<script src="extensions/multiple-sort/bootstrap-table-multiple-sort.js"></script>
-```
-
-## Options
-
-### showMultiSort
-
-* type: Boolean
-* description: Set true to allow the multiple sort.
-* default: `false`
-
-### sortPriority
-
-* type: Object
-* description: Set one or multiple sort priority. Example: '[{"sortName": "forks_count","sortOrder":"desc"},{"sortName":"stargazers_count","sortOrder":"desc"}]'
-* default: null
-
-### Icons
-* sort: `glyphicon-sort`
-* plus: `glyphicon-plus`
-* minus: `glyphicon-minus`
-
-## Locales
-
-### formatMultipleSort
-
-* description: Title of the advanced search modal
-* default: `Multiple Sort`
-
-### formatAddLevel
-
-* description: Text of the add level button
-* default: `Add Level`
-
-### formatDeleteLevel
-
-* description: Text of the delete level button
-* default: `Delete Level`
-
-### formatColumn
-
-* description: Text of Column header
-* default: `Column`
-
-### formatOrder
-
-* description: Text of the delete level button
-* default: `Order`
-
-### formatSortBy
-
-* description: Text of the delete level button
-* default: `Sort by`
-
-### formatThenBy
-
-* description: Text of the delete level button
-* default: `Then by`
-
-### formatSort
-
-* description: Text of the delete level button
-* default: `Sort`
-
-### formatCancel
-
-* description: Text of the delete level button
-* default: `Cancel`
-
-### formatDuplicateAlertTitle
-
-* description: Title of the duplicate alert
-* default: `Duplicate(s) detected!`
-
-### formatDuplicateAlertDescription
-
-* description: Text of the duplicate alert
-* default: `Please remove or change any duplicate column.`
-
-## Events
-
-### onMultipleSort(multiple-sort.bs.table)
-
-* Fires when sorting with one or multiple Sort Priority.

+ 0 - 13
docs/_i18n/en/extensions/natural-sorting.md

@@ -1,13 +0,0 @@
-# Table Natural Sorting
-
-Use Plugin: [bootstrap-table-natural-sorting](https://github.com/wenzhixin/bootstrap-table/tree/master/src/extensions/natural-sorting)
-
-## Usage
-
-```html
-<script src="extensions/natural-sorting/bootstrap-table-natural-sorting.js"></script>
-```
-
-### Options
-
-* Just add data-sorter="alphanum" to any th

+ 0 - 41
docs/_i18n/en/extensions/reorder-columns.md

@@ -1,41 +0,0 @@
-# Table Reorder Columns
-
-Use Plugin: [bootstrap-table-reorder-columns](https://github.com/wenzhixin/bootstrap-table/tree/master/src/extensions/reorder-columns) </br>
-Dependence: [dragTable](https://github.com/akottr/dragtable/) v2.0.14 (must include the css file), </br>
-[jquery-ui](https://code.jquery.com/ui/) v1.11
-
-
-## Usage
-
-```html
-<link rel="stylesheet" href=".../dragtable.css">
-<script src=".../jquery-ui.js"></script>
-<script src=".../jquery.dragtable.js"></script>
-<script src="extensions/reorder-columns/bootstrap-table-reorder-columns.js"></script>
-```
-
-## Options
-
-### reorderableColumns
-
-* type: Boolean
-* description: Set true to allow the reorder feature.
-* default: `false`
-
-### maxMovingRows
-
-* type: Integer
-* description: Moving only the header. Recommended for very large tables (cells > 1000)
-* default: `10`
-
-### dragaccept
-
-* type: String
-* description: Allow to drag only the rows that have the css class as attribute.
-* default: `null`
-
-## Events
-
-### onReorderColumn(reorder-column.bs.table)
-
-Fired when the column was dropped, receive as parameter the new header fields order

+ 0 - 74
docs/_i18n/en/extensions/reorder-rows.md

@@ -1,74 +0,0 @@
-# Table Reorder Rows
-
-Use Plugin: [bootstrap-table-reorder-rows](https://github.com/wenzhixin/bootstrap-table/tree/master/src/extensions/reorder-rows) </br>
-Dependence: [tablednd](https://github.com/isocra/TableDnD) v0.9, </br>
-if you want you can include the bootstrap-table-reorder-rows.css file to use the default dragClass
-
-
-## Usage
-
-```html
-<link rel="stylesheet" href=".../bootstrap-table-reorder-rows.css">
-<script src=".../jquery.tablednd.js"></script>
-<script src="extensions/reorder-rows/bootstrap-table-reorder-rows.js"></script>
-```
-
-## Options
-
-### reorderableRows
-
-* type: Boolean
-* description: Set true to allow the reorder feature.
-* default: `false`
-
-### onDragStyle
-
-* type: String
-* description: This is the style that is assigned to the row during drag. There are limitations to the styles that can be associated with a row (such as you can't assign a border�well you can, but it won't be displayed).
-* default: `null`
-
-### onDropStyle
-
-* type: String
-* description: This is the style that is assigned to the row when it is dropped. As for onDragStyle, there are limitations to what you can do. Also this replaces the original style, so again consider using onDragClass which is simply added and then removed on drop.
-* default: `null`
-
-### onDragClass
-
-* type: String
-* description: This class is added for the duration of the drag and then removed when the row is dropped. It is more flexible than using onDragStyle since it can be inherited by the row cells and other content.
-* default: `reorder_rows_onDragClass`
-
-### dragHandle
-
-* type: String
-* description: This is the cursor to use
-* default: `null`
-
-### useRowAttrFunc
-
-* type: Boolean
-* description: This function must be use if your `tr` elements won't have the `id` attribute. If your `tr` elements don't have the `id` attribute this plugin don't fire the onDrop event.
-* default: `false`
-
-### onReorderRowsDrag
-
-* type: Function
-* description: Pass a function that will be called when the user starts dragging. The function takes 2 parameters: the table and the row which the user has started to drag.
-* default: `empty function`
-
-### onReorderRowsDrop
-
-* type: Function
-* description: Pass a function that will be called when the row is dropped. The function takes 2 parameters: the table and the row that was dropped.
-* default: `empty function`
-
-## Events
-
-### onReorderRow(reorder-row.bs.table)
-
-Fired when the row was dropped, receive as parameter the new data order
-
-## The existing problems
-
-* After search if the user reorder the rows the data is not shown properly after that.

+ 0 - 66
docs/_i18n/en/extensions/resizable.md

@@ -1,66 +0,0 @@
-# Table Resizable
-
-Use Plugin: [bootstrap-table-resizable](https://github.com/wenzhixin/bootstrap-table/tree/master/src/extensions/resizable) </br>
-Dependence: [colResizable](https://github.com/alvaro-prieto/colResizable) v1.5
-
-## Usage
-
-```html
-<script src="extensions/cookie/bootstrap-table-resizable.js"></script>
-```
-
-## Options
-
-### resizable
-
-* type: Boolean
-* description: Set true to allow the resize in each column.
-* default: `false`
-
-### liveDrag
-
-* type: Boolean
-* description: When set to true the table layout is updated while dragging column anchors. liveDrag enabled is more CPU consuming so it is not recommended for slow computers, specially when dealing with huge or extremely complicated tables.
-* default: `false`
-
-### fixed
-
-* type: Boolean
-* description: It is used to set how the resize method works. In fixed mode resizing a column does not alter total table width, which means that when a column is expanded the next one shrinks. If fixed is set to false then table can change its width and each column can shrink or expand independently.
-* default: `true`
-
-### headerOnly
-
-* type: Boolean
-* description: This attribute can be used to prevent vertical expansion of the column anchors to fit the table height. If it is set to true, column handler's size will be bounded to the first row's vertical size.
-* default: `false`
-
-### minWidth
-
-* type: Integer
-* description: This value specifies the minimum width (measured in pixels) that is allowed for the columns.
-* default: `15`
-
-### hoverCursor
-
-* type: String
-* description: This attribute can be used to customize the cursor that will be displayed when the user is positioned on the column anchors.
-* default: `e-resize`
-
-### dragCursor
-
-* type: String
-* description: Defines the cursor that will be used while the user is resizing a column.
-* default: `e-resize`
-
-### onResizableResize
-
-* type: Function
-* description: If a callback function is supplied it will be fired when the user has ended dragging a column anchor altering the previous table layout. The callback function can obtain a reference to the updated table through the currentTarget attribute of the event retrieved by parameters.
-* default: `empty function`
-
-### onResizableDrag
-
-* type: Function
-* description: This event is fired while dragging a column anchor if liveDrag is enabled. It can be useful if the table is being used as a multiple range slider. The callback function can obtain a reference to the updated table through the currentTarget attribute of the event retrieved by parameters
-* default: `empty function`

+ 0 - 53
docs/_i18n/en/extensions/toolbar.md

@@ -1,53 +0,0 @@
-# Table Toolbar
-
-Use Plugin: [bootstrap-table-toolbar](https://github.com/wenzhixin/bootstrap-table/tree/master/src/extensions/toolbar)
-
-## Usage
-
-```html
-<script src="extensions/toolbar/bootstrap-table-toolbar.js"></script>
-```
-
-## Options
-
-### advancedSearch
-
-* type: Boolean
-* description: Set true to allow the advanced search.
-* default: `false`
-
-### idForm
-
-* type: String
-* description: Must be set to know the idform.
-* default: `advancedSearch`
-
-### actionForm
-
-* type: String
-* description: Set the action of the form (pop-up).
-* default: ``
-
-### idTable
-
-* type: String
-* description: Set the id of the table to create the pop-up form.
-* default: ``
-
-## Locales
-
-### formatAdvancedSearch
-
-* description: Title of the advanced search modal
-* default: `Advanced search`
-
-### formatAdvancedCloseButton
-
-* description: Text of the close button
-* default: `Close`
-
-## Events
-
-### onColumnAdvancedSearch(column-advanced-search.bs.table)
-
-* Fired when we are searching into the advanced search form

+ 0 - 56
docs/_i18n/es/extensions/cookie.md

@@ -1,56 +0,0 @@
-# Table Cookie
-
-Use Plugin: [bootstrap-table-cookie](https://github.com/wenzhixin/bootstrap-table/tree/master/src/extensions/cookie)
-
-## Usage
-
-```html
-<script src="extensions/cookie/bootstrap-table-cookie.js"></script>
-```
-
-## Options
-
-### cookie
-
-* type: Boolean
-* description: Set true to save the state of a table (its paging position, ordering state, records per page).
-* default: `false`
-
-### cookieExpire
-
-* type: String
-* description: You must set this property if cookie option is enable to know when will expire the cookie created. Must use this format: 'number{letter}' like '2h', in the letter position
-               		you can use: 's','mi','h','d','m','y', these means: 'seconds', 'minutes', 'hours', 'days', 'months', 'years'.
-* default: `2h`
-
-### cookiePath
-
-* type: String
-* description: you can tell the browser what path the cookie belongs to. By default, the cookie belongs to the current page.
-* default: `null`
-
-### cookieDomain
-
-* type: String
-* description: This is the website domain, with the www. prefix removed.
-* default: `null`
-
-### cookieSecure
-
-* type: Boolean
-* description: This property keeps cookie communication limited to encrypted transmission, directing browsers to use cookies only via secure/encrypted connections.
-* default: `null`
-
-### cookieIdTable
-
-* type: String
-* description: You must set this property if the cookie property is enabled to set an unique cookie with an identifier for each table in your page or project. You must set this property because we need create cookies with an identifier.
-* default: ``
-
-## This plugin saves
-
-* Sort order
-* Page number
-* Page number from the list
-* Visible columns
-* Search text

+ 0 - 39
docs/_i18n/es/extensions/editable.md

@@ -1,39 +0,0 @@
-# Table Editable
-
-Use Plugin: [x-editable](https://github.com/vitalets/x-editable)
-
-## Usage
-
-```html
-<script src="extensions/editable/bootstrap-table-editable.js"></script>
-```
-
-## Options
-
-### editable
-
-* type: Boolean
-* description: Set false to disabled editable of all columns.
-* default: `true`
-
-## Column options
-
-### editable
-
-* type: Object
-* description: Configuration of x-editable. Full list of options: http://vitalets.github.io/x-editable/docs.html#editable
-* default: `undefined`
-
-## Events
-
-### onEditableInit(editable-init.bs.table)
-
-Fired when all columns was initialized by `$().editable()` method.
-
-### onEditableSave(editable-save.bs.table)
-
-Fired when an editable cell is saved.
-
-## The existing problems
-
-* Editable extension does not support searchable in the select type.

+ 0 - 35
docs/_i18n/es/extensions/export.md

@@ -1,35 +0,0 @@
-# Table Export
-
-Use Plugin: [tableExport.jquery.plugin](https://github.com/hhurz/tableExport.jquery.plugin)
-
-## Usage
-
-```html
-<script src="extensions/export/bootstrap-table-export.js"></script>
-```
-
-## Options
-
-### showExport
-
-* type: Boolean
-* description: set `true` to show export button.
-* default: `false`
-
-### exportDataType
-
-* type: String
-* description: export data type, support: 'basic', 'all', 'selected'.
-* default: `basic`
-
-### exportTypes
-
-* type: Array
-* description: export types, support types: 'json', 'xml', 'png', 'csv', 'txt', 'sql', 'doc', 'excel', 'powerpoint', 'pdf'.
-* default: `['json', 'xml', 'csv', 'txt', 'sql', 'excel']`
-
-### exportOptions
-
-* type: Object
-* description: export [options](https://github.com/hhurz/tableExport.jquery.plugin#options) of `tableExport.jquery.plugin`
-* default: `{}`

+ 0 - 51
docs/_i18n/es/extensions/filter-control.md

@@ -1,51 +0,0 @@
-# Table Filter Control
-
-Use Plugin: [bootstrap-table-filter-control](https://github.com/wenzhixin/bootstrap-table/tree/master/src/extensions/filter-control) </br>
-Dependence if you use the datepicker option: [bootstrap-datepicker](https://github.com/eternicode/bootstrap-datepicker) v1.4.0
-
-## Usage
-
-```html
-<script src="extensions/filter-control/bootstrap-table-filter-control.js"></script>
-```
-
-## Options
-
-### filterControl
-
-* type: Boolean
-* description: Set true to add an `input` or `select` into the column.
-* default: `false`
-
-### filterShowClear
-
-* type: Boolean
-* description: Set true to add a button to clear all the controls added by this plugin
-* default: `false`
-
-
-### filterStrictSearch
-
-* type: Boolean
-* description: Set true to enable the strict search in column.
-* default: `false`
-
-
-## Column options
-
-### filterControl
-
-* type: String
-* description: Set `input`: show an input control, `select`: show a select control, `datepicker`: show a datepicker control.
-* default: `undefined`
-
-### filterDatepickerOptions
-* type: Object
-* description: If the datepicker option is set use this option to configure the datepicker with the native options. Use this way: `data-filter-datepicker-options='{"autoclose":true, "clearBtn": true, "todayHighlight": true}'`.
-* default: `undefined`
-
-## Events
-
-### onColumnSearch(column-search.bs.table)
-
-* Fired when we are searching into the column data

+ 0 - 17
docs/_i18n/es/extensions/filter.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`

+ 0 - 23
docs/_i18n/es/extensions/flat-json.md

@@ -1,23 +0,0 @@
-# Table flat-json
-
-Use Plugin: [bootstrap-table-flat-json](https://github.com/djhvscf/bootstrap-table-flat-json)
-
-## Usage
-
-```html
-<script src="extensions/flat-json/bootstrap-table-flat-json.js"></script>
-```
-
-## Options
-
-### flat
-
-* type: Boolean
-* description: Set true to flat the JSON object.
-* default: `false`
-
-### flatSeparator
-
-* type: String
-* description: Set the default separator between object levels.
-* default: `.`

+ 0 - 53
docs/_i18n/es/extensions/group-by.md

@@ -1,53 +0,0 @@
-# Table group-by
-
-Use Plugin: [bootstrap-table-group-by](https://github.com/djhvscf/bootstrap-table-group-by) </br>
-Dependence: [jquery-treetable](https://github.com/ludo/jquery-treetable/) v3.2.0 </br>
-You must include the bootstrap-table-group-by.css file in order to get the appropriate style
-
-## Usage
-
-```html
-<script src="extensions/group-by/bootstrap-table-group-by.js"></script>
-```
-
-## Options
-
-### groupBy
-
-* type: Boolean
-* description: Set true to group the data by the field passed.
-* default: `false`
-
-### groupByField
-
-* type: String
-* description: Set the field that you want to group the data.
-* default: ``
-
-### groupBySumGroup
-
-* type: Boolean
-* description: Set to True to include a sum row.
-* default: `false`
-
-### groupByInitExpanded
-
-* type: Boolean
-* description: Set to True to expand the first node of the table.
-* default: `false`
-
-## Methods
-
-### expandAll
-
-* Expand all the nodes in the table.
-
-### collapseAll
-
-* Collapse all the nodes in the table.
-
-## Known issues
-
-### OnSort
-
-* When sort options are set to True the group by is not working properly, for now if these properties are set to True the group by extension will be disabled.

+ 0 - 24
docs/_i18n/es/extensions/key-events.md

@@ -1,24 +0,0 @@
-# Table Key Events
-
-Use Plugin: [bootstrap-table-key-events](https://github.com/wenzhixin/bootstrap-table/tree/master/src/extensions/key-events)
-
-## Usage
-
-```html
-<script src="extensions/cookie/bootstrap-table-key-events.js"></script>
-```
-
-## Options
-
-### keyEvents
-
-* type: Boolean
-* description:
-True to enable the key events. The key event list is:
-    * s: It will be focused the search textbox if it is enabled.
-    * r: It will refresh the table if the showRefresh option is enabled.
-    * t: It will toggle the table view if the showToggle option is enabled.
-    * p: It will fires the pagination switch if the showPaginationSwitch is enabled.
-    * left: It will go to prev page if the pagination is true.
-    * right: It will go to next page if the pagination is true.
-* default: `false`

+ 0 - 41
docs/_i18n/es/extensions/mobile.md

@@ -1,41 +0,0 @@
-# Table Mobile
-
-Use Plugin: [bootstrap-table-mobile](https://github.com/wenzhixin/bootstrap-table/tree/master/src/extensions/mobile)
-
-## Usage
-
-```html
-<script src="extensions/mobile/bootstrap-table-mobile.js"></script>
-```
-
-## Options
-
-### mobileResponsive
-
-* type: Boolean
-* description: Set true to change the view between card and table view depending on width and height given.
-* default: `false`
-
-### checkOnInit
-
-* type: Boolean
-* description: Set true to check the window size on init.
-* default: `true`
-
-### minWidth
-
-* type: Integer
-* description: Set the minimum width when the table will change the view.
-* default: `562`
-
-### minHeight
-
-* type: Integer
-* description: Set the minimum height when the table will change the view.
-* default: `undefined`
-
-### columnsHidden
-
-* type: String
-* description: Set the columns fields in this array in order to hide those columns in the cardView mode. Use this way in `data-*` configuration: ` data-columns-hidden="['name', 'description']"` or this way in javascript configuration: `columnsHidden = ['name', 'description']`. 
-* default: `undefined`

+ 0 - 91
docs/_i18n/es/extensions/multiple-sort.md

@@ -1,91 +0,0 @@
-# Table Multiple Sort
-
-Use Plugin: [bootstrap-table-multiple-sort](https://github.com/dimbslmh/bootstrap-table/tree/master/src/extensions/multiple-sort)
-
-## Usage
-
-```html
-<script src="extensions/multiple-sort/bootstrap-table-multiple-sort.js"></script>
-```
-
-## Options
-
-### showMultiSort
-
-* type: Boolean
-* description: Set true to allow the multiple sort.
-* default: `false`
-
-### sortPriority
-
-* type: Object
-* description: Set one or multiple sort priority. Example: '[{"sortName": "forks_count","sortOrder":"desc"},{"sortName":"stargazers_count","sortOrder":"desc"}]'
-* default: null
-
-### Icons
-* sort: `glyphicon-sort`
-* plus: `glyphicon-plus`
-* minus: `glyphicon-minus`
-
-## Locales
-
-### formatMultipleSort
-
-* description: Title of the advanced search modal
-* default: `Multiple Sort`
-
-### formatAddLevel
-
-* description: Text of the add level button
-* default: `Add Level`
-
-### formatDeleteLevel
-
-* description: Text of the delete level button
-* default: `Delete Level`
-
-### formatColumn
-
-* description: Text of Column header
-* default: `Column`
-
-### formatOrder
-
-* description: Text of the delete level button
-* default: `Order`
-
-### formatSortBy
-
-* description: Text of the delete level button
-* default: `Sort by`
-
-### formatThenBy
-
-* description: Text of the delete level button
-* default: `Then by`
-
-### formatSort
-
-* description: Text of the delete level button
-* default: `Sort`
-
-### formatCancel
-
-* description: Text of the delete level button
-* default: `Cancel`
-
-### formatDuplicateAlertTitle
-
-* description: Title of the duplicate alert
-* default: `Duplicate(s) detected!`
-
-### formatDuplicateAlertDescription
-
-* description: Text of the duplicate alert
-* default: `Please remove or change any duplicate column.`
-
-## Events
-
-### onMultipleSort(multiple-sort.bs.table)
-
-* Fires when sorting with one or multiple Sort Priority.

+ 0 - 13
docs/_i18n/es/extensions/natural-sorting.md

@@ -1,13 +0,0 @@
-# Table Natural Sorting
-
-Use Plugin: [bootstrap-table-natural-sorting](https://github.com/wenzhixin/bootstrap-table/tree/master/src/extensions/natural-sorting)
-
-## Usage
-
-```html
-<script src="extensions/natural-sorting/bootstrap-table-natural-sorting.js"></script>
-```
-
-### Options
-
-* Just add data-sorter="alphanum" to any th

+ 0 - 41
docs/_i18n/es/extensions/reorder-columns.md

@@ -1,41 +0,0 @@
-# Table Reorder Columns
-
-Use Plugin: [bootstrap-table-reorder-columns](https://github.com/wenzhixin/bootstrap-table/tree/master/src/extensions/reorder-columns) </br>
-Dependence: [dragTable](https://github.com/akottr/dragtable/) v2.0.14 (must include the css file), </br>
-[jquery-ui](https://code.jquery.com/ui/) v1.11
-
-
-## Usage
-
-```html
-<link rel="stylesheet" href=".../dragtable.css">
-<script src=".../jquery-ui.js"></script>
-<script src=".../jquery.dragtable.js"></script>
-<script src="extensions/reorder-columns/bootstrap-table-reorder-columns.js"></script>
-```
-
-## Options
-
-### reorderableColumns
-
-* type: Boolean
-* description: Set true to allow the reorder feature.
-* default: `false`
-
-### maxMovingRows
-
-* type: Integer
-* description: Moving only the header. Recommended for very large tables (cells > 1000)
-* default: `10`
-
-### dragaccept
-
-* type: String
-* description: Allow to drag only the rows that have the css class as attribute.
-* default: `null`
-
-## Events
-
-### onReorderColumn(reorder-column.bs.table)
-
-Fired when the column was dropped, receive as parameter the new header fields order

+ 0 - 74
docs/_i18n/es/extensions/reorder-rows.md

@@ -1,74 +0,0 @@
-# Table Reorder Rows
-
-Use Plugin: [bootstrap-table-reorder-rows](https://github.com/wenzhixin/bootstrap-table/tree/master/src/extensions/reorder-rows) </br>
-Dependence: [tablednd](https://github.com/isocra/TableDnD) v0.9, </br>
-if you want you can include the bootstrap-table-reorder-rows.css file to use the default dragClass
-
-
-## Usage
-
-```html
-<link rel="stylesheet" href=".../bootstrap-table-reorder-rows.css">
-<script src=".../jquery.tablednd.js"></script>
-<script src="extensions/reorder-rows/bootstrap-table-reorder-rows.js"></script>
-```
-
-## Options
-
-### reorderableRows
-
-* type: Boolean
-* description: Set true to allow the reorder feature.
-* default: `false`
-
-### onDragStyle
-
-* type: String
-* description: This is the style that is assigned to the row during drag. There are limitations to the styles that can be associated with a row (such as you can't assign a border�well you can, but it won't be displayed).
-* default: `null`
-
-### onDropStyle
-
-* type: String
-* description: This is the style that is assigned to the row when it is dropped. As for onDragStyle, there are limitations to what you can do. Also this replaces the original style, so again consider using onDragClass which is simply added and then removed on drop.
-* default: `null`
-
-### onDragClass
-
-* type: String
-* description: This class is added for the duration of the drag and then removed when the row is dropped. It is more flexible than using onDragStyle since it can be inherited by the row cells and other content.
-* default: `reorder_rows_onDragClass`
-
-### dragHandle
-
-* type: String
-* description: This is the cursor to use
-* default: `null`
-
-### useRowAttrFunc
-
-* type: Boolean
-* description: This function must be use if your `tr` elements won't have the `id` attribute. If your `tr` elements don't have the `id` attribute this plugin don't fire the onDrop event.
-* default: `false`
-
-### onReorderRowsDrag
-
-* type: Function
-* description: Pass a function that will be called when the user starts dragging. The function takes 2 parameters: the table and the row which the user has started to drag.
-* default: `empty function`
-
-### onReorderRowsDrop
-
-* type: Function
-* description: Pass a function that will be called when the row is dropped. The function takes 2 parameters: the table and the row that was dropped.
-* default: `empty function`
-
-## Events
-
-### onReorderRow(reorder-row.bs.table)
-
-Fired when the row was dropped, receive as parameter the new data order
-
-## The existing problems
-
-* After search if the user reorder the rows the data is not shown properly after that.

+ 0 - 66
docs/_i18n/es/extensions/resizable.md

@@ -1,66 +0,0 @@
-# Table Resizable
-
-Use Plugin: [bootstrap-table-resizable](https://github.com/wenzhixin/bootstrap-table/tree/master/src/extensions/resizable) </br>
-Dependence: [colResizable](https://github.com/alvaro-prieto/colResizable) v1.5
-
-## Usage
-
-```html
-<script src="extensions/cookie/bootstrap-table-resizable.js"></script>
-```
-
-## Options
-
-### resizable
-
-* type: Boolean
-* description: Set true to allow the resize in each column.
-* default: `false`
-
-### liveDrag
-
-* type: Boolean
-* description: When set to true the table layout is updated while dragging column anchors. liveDrag enabled is more CPU consuming so it is not recommended for slow computers, specially when dealing with huge or extremely complicated tables.
-* default: `false`
-
-### fixed
-
-* type: Boolean
-* description: It is used to set how the resize method works. In fixed mode resizing a column does not alter total table width, which means that when a column is expanded the next one shrinks. If fixed is set to false then table can change its width and each column can shrink or expand independently.
-* default: `true`
-
-### headerOnly
-
-* type: Boolean
-* description: This attribute can be used to prevent vertical expansion of the column anchors to fit the table height. If it is set to true, column handler's size will be bounded to the first row's vertical size.
-* default: `false`
-
-### minWidth
-
-* type: Integer
-* description: This value specifies the minimum width (measured in pixels) that is allowed for the columns.
-* default: `15`
-
-### hoverCursor
-
-* type: String
-* description: This attribute can be used to customize the cursor that will be displayed when the user is positioned on the column anchors.
-* default: `e-resize`
-
-### dragCursor
-
-* type: String
-* description: Defines the cursor that will be used while the user is resizing a column.
-* default: `e-resize`
-
-### onResizableResize
-
-* type: Function
-* description: If a callback function is supplied it will be fired when the user has ended dragging a column anchor altering the previous table layout. The callback function can obtain a reference to the updated table through the currentTarget attribute of the event retrieved by parameters.
-* default: `empty function`
-
-### onResizableDrag
-
-* type: Function
-* description: This event is fired while dragging a column anchor if liveDrag is enabled. It can be useful if the table is being used as a multiple range slider. The callback function can obtain a reference to the updated table through the currentTarget attribute of the event retrieved by parameters
-* default: `empty function`

+ 0 - 53
docs/_i18n/es/extensions/toolbar.md

@@ -1,53 +0,0 @@
-# Table Toolbar
-
-Use Plugin: [bootstrap-table-toolbar](https://github.com/wenzhixin/bootstrap-table/tree/master/src/extensions/toolbar)
-
-## Usage
-
-```html
-<script src="extensions/toolbar/bootstrap-table-toolbar.js"></script>
-```
-
-## Options
-
-### advancedSearch
-
-* type: Boolean
-* description: Set true to allow the advanced search.
-* default: `false`
-
-### idForm
-
-* type: String
-* description: Must be set to know the idform.
-* default: `advancedSearch`
-
-### actionForm
-
-* type: String
-* description: Set the action of the form (pop-up).
-* default: ``
-
-### idTable
-
-* type: String
-* description: Set the id of the table to create the pop-up form.
-* default: ``
-
-## Locales
-
-### formatAdvancedSearch
-
-* description: Title of the advanced search modal
-* default: `Advanced search`
-
-### formatAdvancedCloseButton
-
-* description: Text of the close button
-* default: `Close`
-
-## Events
-
-### onColumnAdvancedSearch(column-advanced-search.bs.table)
-
-* Fired when we are searching into the advanced search form

+ 0 - 56
docs/_i18n/zh-cn/extensions/cookie.md

@@ -1,56 +0,0 @@
-# Table Cookie
-
-Use Plugin: [bootstrap-table-cookie](https://github.com/wenzhixin/bootstrap-table/tree/master/src/extensions/cookie)
-
-## Usage
-
-```html
-<script src="extensions/cookie/bootstrap-table-cookie.js"></script>
-```
-
-## Options
-
-### cookie
-
-* type: Boolean
-* description: Set true to save the state of a table (its paging position, ordering state, records per page).
-* default: `false`
-
-### cookieExpire
-
-* type: String
-* description: You must set this property if cookie option is enable to know when will expire the cookie created. Must use this format: 'number{letter}' like '2h', in the letter position
-               		you can use: 's','mi','h','d','m','y', these means: 'seconds', 'minutes', 'hours', 'days', 'months', 'years'.
-* default: `2h`
-
-### cookiePath
-
-* type: String
-* description: you can tell the browser what path the cookie belongs to. By default, the cookie belongs to the current page.
-* default: `null`
-
-### cookieDomain
-
-* type: String
-* description: This is the website domain, with the www. prefix removed.
-* default: `null`
-
-### cookieSecure
-
-* type: Boolean
-* description: This property keeps cookie communication limited to encrypted transmission, directing browsers to use cookies only via secure/encrypted connections.
-* default: `null`
-
-### cookieIdTable
-
-* type: String
-* description: You must set this property if the cookie property is enabled to set an unique cookie with an identifier for each table in your page or project. You must set this property because we need create cookies with an identifier.
-* default: ``
-
-## This plugin saves
-
-* Sort order
-* Page number
-* Page number from the list
-* Visible columns
-* Search text

+ 0 - 39
docs/_i18n/zh-cn/extensions/editable.md

@@ -1,39 +0,0 @@
-# Table Editable
-
-Use Plugin: [x-editable](https://github.com/vitalets/x-editable)
-
-## Usage
-
-```html
-<script src="extensions/editable/bootstrap-table-editable.js"></script>
-```
-
-## Options
-
-### editable
-
-* type: Boolean
-* description: Set false to disabled editable of all columns.
-* default: `true`
-
-## Column options
-
-### editable
-
-* type: Object
-* description: Configuration of x-editable. Full list of options: http://vitalets.github.io/x-editable/docs.html#editable
-* default: `undefined`
-
-## Events
-
-### onEditableInit(editable-init.bs.table)
-
-Fired when all columns was initialized by `$().editable()` method.
-
-### onEditableSave(editable-save.bs.table)
-
-Fired when an editable cell is saved.
-
-## The existing problems
-
-* Editable extension does not support searchable in the select type.

+ 0 - 35
docs/_i18n/zh-cn/extensions/export.md

@@ -1,35 +0,0 @@
-# Table Export
-
-Use Plugin: [tableExport.jquery.plugin](https://github.com/hhurz/tableExport.jquery.plugin)
-
-## Usage
-
-```html
-<script src="extensions/export/bootstrap-table-export.js"></script>
-```
-
-## Options
-
-### showExport
-
-* type: Boolean
-* description: set `true` to show export button.
-* default: `false`
-
-### exportDataType
-
-* type: String
-* description: export data type, support: 'basic', 'all', 'selected'.
-* default: `basic`
-
-### exportTypes
-
-* type: Array
-* description: export types, support types: 'json', 'xml', 'png', 'csv', 'txt', 'sql', 'doc', 'excel', 'powerpoint', 'pdf'.
-* default: `['json', 'xml', 'csv', 'txt', 'sql', 'excel']`
-
-### exportOptions
-
-* type: Object
-* description: export [options](https://github.com/hhurz/tableExport.jquery.plugin#options) of `tableExport.jquery.plugin`
-* default: `{}`

+ 0 - 51
docs/_i18n/zh-cn/extensions/filter-control.md

@@ -1,51 +0,0 @@
-# Table Filter Control
-
-Use Plugin: [bootstrap-table-filter-control](https://github.com/wenzhixin/bootstrap-table/tree/master/src/extensions/filter-control) </br>
-Dependence if you use the datepicker option: [bootstrap-datepicker](https://github.com/eternicode/bootstrap-datepicker) v1.4.0
-
-## Usage
-
-```html
-<script src="extensions/filter-control/bootstrap-table-filter-control.js"></script>
-```
-
-## Options
-
-### filterControl
-
-* type: Boolean
-* description: Set true to add an `input` or `select` into the column.
-* default: `false`
-
-### filterShowClear
-
-* type: Boolean
-* description: Set true to add a button to clear all the controls added by this plugin
-* default: `false`
-
-
-### filterStrictSearch
-
-* type: Boolean
-* description: Set true to enable the strict search in column.
-* default: `false`
-
-
-## Column options
-
-### filterControl
-
-* type: String
-* description: Set `input`: show an input control, `select`: show a select control, `datepicker`: show a datepicker control.
-* default: `undefined`
-
-### filterDatepickerOptions
-* type: Object
-* description: If the datepicker option is set use this option to configure the datepicker with the native options. Use this way: `data-filter-datepicker-options='{"autoclose":true, "clearBtn": true, "todayHighlight": true}'`.
-* default: `undefined`
-
-## Events
-
-### onColumnSearch(column-search.bs.table)
-
-* Fired when we are searching into the column data

+ 0 - 17
docs/_i18n/zh-cn/extensions/filter.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`

+ 0 - 23
docs/_i18n/zh-cn/extensions/flat-json.md

@@ -1,23 +0,0 @@
-# Table flat-json
-
-Use Plugin: [bootstrap-table-flat-json](https://github.com/djhvscf/bootstrap-table-flat-json)
-
-## Usage
-
-```html
-<script src="extensions/flat-json/bootstrap-table-flat-json.js"></script>
-```
-
-## Options
-
-### flat
-
-* type: Boolean
-* description: Set true to flat the JSON object.
-* default: `false`
-
-### flatSeparator
-
-* type: String
-* description: Set the default separator between object levels.
-* default: `.`

+ 0 - 53
docs/_i18n/zh-cn/extensions/group-by.md

@@ -1,53 +0,0 @@
-# Table group-by
-
-Use Plugin: [bootstrap-table-group-by](https://github.com/djhvscf/bootstrap-table-group-by) </br>
-Dependence: [jquery-treetable](https://github.com/ludo/jquery-treetable/) v3.2.0 </br>
-You must include the bootstrap-table-group-by.css file in order to get the appropriate style
-
-## Usage
-
-```html
-<script src="extensions/group-by/bootstrap-table-group-by.js"></script>
-```
-
-## Options
-
-### groupBy
-
-* type: Boolean
-* description: Set true to group the data by the field passed.
-* default: `false`
-
-### groupByField
-
-* type: String
-* description: Set the field that you want to group the data.
-* default: ``
-
-### groupBySumGroup
-
-* type: Boolean
-* description: Set to True to include a sum row.
-* default: `false`
-
-### groupByInitExpanded
-
-* type: Boolean
-* description: Set to True to expand the first node of the table.
-* default: `false`
-
-## Methods
-
-### expandAll
-
-* Expand all the nodes in the table.
-
-### collapseAll
-
-* Collapse all the nodes in the table.
-
-## Known issues
-
-### OnSort
-
-* When sort options are set to True the group by is not working properly, for now if these properties are set to True the group by extension will be disabled.

+ 0 - 24
docs/_i18n/zh-cn/extensions/key-events.md

@@ -1,24 +0,0 @@
-# Table Key Events
-
-Use Plugin: [bootstrap-table-key-events](https://github.com/wenzhixin/bootstrap-table/tree/master/src/extensions/key-events)
-
-## Usage
-
-```html
-<script src="extensions/cookie/bootstrap-table-key-events.js"></script>
-```
-
-## Options
-
-### keyEvents
-
-* type: Boolean
-* description:
-True to enable the key events. The key event list is:
-    * s: It will be focused the search textbox if it is enabled.
-    * r: It will refresh the table if the showRefresh option is enabled.
-    * t: It will toggle the table view if the showToggle option is enabled.
-    * p: It will fires the pagination switch if the showPaginationSwitch is enabled.
-    * left: It will go to prev page if the pagination is true.
-    * right: It will go to next page if the pagination is true.
-* default: `false`

+ 0 - 41
docs/_i18n/zh-cn/extensions/mobile.md

@@ -1,41 +0,0 @@
-# Table Mobile
-
-Use Plugin: [bootstrap-table-mobile](https://github.com/wenzhixin/bootstrap-table/tree/master/src/extensions/mobile)
-
-## Usage
-
-```html
-<script src="extensions/mobile/bootstrap-table-mobile.js"></script>
-```
-
-## Options
-
-### mobileResponsive
-
-* type: Boolean
-* description: Set true to change the view between card and table view depending on width and height given.
-* default: `false`
-
-### checkOnInit
-
-* type: Boolean
-* description: Set true to check the window size on init.
-* default: `true`
-
-### minWidth
-
-* type: Integer
-* description: Set the minimum width when the table will change the view.
-* default: `562`
-
-### minHeight
-
-* type: Integer
-* description: Set the minimum height when the table will change the view.
-* default: `undefined`
-
-### columnsHidden
-
-* type: String
-* description: Set the columns fields in this array in order to hide those columns in the cardView mode. Use this way in `data-*` configuration: ` data-columns-hidden="['name', 'description']"` or this way in javascript configuration: `columnsHidden = ['name', 'description']`. 
-* default: `undefined`

+ 0 - 91
docs/_i18n/zh-cn/extensions/multiple-sort.md

@@ -1,91 +0,0 @@
-# Table Multiple Sort
-
-Use Plugin: [bootstrap-table-multiple-sort](https://github.com/dimbslmh/bootstrap-table/tree/master/src/extensions/multiple-sort)
-
-## Usage
-
-```html
-<script src="extensions/multiple-sort/bootstrap-table-multiple-sort.js"></script>
-```
-
-## Options
-
-### showMultiSort
-
-* type: Boolean
-* description: Set true to allow the multiple sort.
-* default: `false`
-
-### sortPriority
-
-* type: Object
-* description: Set one or multiple sort priority. Example: '[{"sortName": "forks_count","sortOrder":"desc"},{"sortName":"stargazers_count","sortOrder":"desc"}]'
-* default: null
-
-### Icons
-* sort: `glyphicon-sort`
-* plus: `glyphicon-plus`
-* minus: `glyphicon-minus`
-
-## Locales
-
-### formatMultipleSort
-
-* description: Title of the advanced search modal
-* default: `Multiple Sort`
-
-### formatAddLevel
-
-* description: Text of the add level button
-* default: `Add Level`
-
-### formatDeleteLevel
-
-* description: Text of the delete level button
-* default: `Delete Level`
-
-### formatColumn
-
-* description: Text of Column header
-* default: `Column`
-
-### formatOrder
-
-* description: Text of the delete level button
-* default: `Order`
-
-### formatSortBy
-
-* description: Text of the delete level button
-* default: `Sort by`
-
-### formatThenBy
-
-* description: Text of the delete level button
-* default: `Then by`
-
-### formatSort
-
-* description: Text of the delete level button
-* default: `Sort`
-
-### formatCancel
-
-* description: Text of the delete level button
-* default: `Cancel`
-
-### formatDuplicateAlertTitle
-
-* description: Title of the duplicate alert
-* default: `Duplicate(s) detected!`
-
-### formatDuplicateAlertDescription
-
-* description: Text of the duplicate alert
-* default: `Please remove or change any duplicate column.`
-
-## Events
-
-### onMultipleSort(multiple-sort.bs.table)
-
-* Fires when sorting with one or multiple Sort Priority.

+ 0 - 13
docs/_i18n/zh-cn/extensions/natural-sorting.md

@@ -1,13 +0,0 @@
-# Table Natural Sorting
-
-Use Plugin: [bootstrap-table-natural-sorting](https://github.com/wenzhixin/bootstrap-table/tree/master/src/extensions/natural-sorting)
-
-## Usage
-
-```html
-<script src="extensions/natural-sorting/bootstrap-table-natural-sorting.js"></script>
-```
-
-### Options
-
-* Just add data-sorter="alphanum" to any th

+ 0 - 41
docs/_i18n/zh-cn/extensions/reorder-columns.md

@@ -1,41 +0,0 @@
-# Table Reorder Columns
-
-Use Plugin: [bootstrap-table-reorder-columns](https://github.com/wenzhixin/bootstrap-table/tree/master/src/extensions/reorder-columns) </br>
-Dependence: [dragTable](https://github.com/akottr/dragtable/) v2.0.14 (must include the css file), </br>
-[jquery-ui](https://code.jquery.com/ui/) v1.11
-
-
-## Usage
-
-```html
-<link rel="stylesheet" href=".../dragtable.css">
-<script src=".../jquery-ui.js"></script>
-<script src=".../jquery.dragtable.js"></script>
-<script src="extensions/reorder-columns/bootstrap-table-reorder-columns.js"></script>
-```
-
-## Options
-
-### reorderableColumns
-
-* type: Boolean
-* description: Set true to allow the reorder feature.
-* default: `false`
-
-### maxMovingRows
-
-* type: Integer
-* description: Moving only the header. Recommended for very large tables (cells > 1000)
-* default: `10`
-
-### dragaccept
-
-* type: String
-* description: Allow to drag only the rows that have the css class as attribute.
-* default: `null`
-
-## Events
-
-### onReorderColumn(reorder-column.bs.table)
-
-Fired when the column was dropped, receive as parameter the new header fields order

+ 0 - 74
docs/_i18n/zh-cn/extensions/reorder-rows.md

@@ -1,74 +0,0 @@
-# Table Reorder Rows
-
-Use Plugin: [bootstrap-table-reorder-rows](https://github.com/wenzhixin/bootstrap-table/tree/master/src/extensions/reorder-rows) </br>
-Dependence: [tablednd](https://github.com/isocra/TableDnD) v0.9, </br>
-if you want you can include the bootstrap-table-reorder-rows.css file to use the default dragClass
-
-
-## Usage
-
-```html
-<link rel="stylesheet" href=".../bootstrap-table-reorder-rows.css">
-<script src=".../jquery.tablednd.js"></script>
-<script src="extensions/reorder-rows/bootstrap-table-reorder-rows.js"></script>
-```
-
-## Options
-
-### reorderableRows
-
-* type: Boolean
-* description: Set true to allow the reorder feature.
-* default: `false`
-
-### onDragStyle
-
-* type: String
-* description: This is the style that is assigned to the row during drag. There are limitations to the styles that can be associated with a row (such as you can't assign a border�well you can, but it won't be displayed).
-* default: `null`
-
-### onDropStyle
-
-* type: String
-* description: This is the style that is assigned to the row when it is dropped. As for onDragStyle, there are limitations to what you can do. Also this replaces the original style, so again consider using onDragClass which is simply added and then removed on drop.
-* default: `null`
-
-### onDragClass
-
-* type: String
-* description: This class is added for the duration of the drag and then removed when the row is dropped. It is more flexible than using onDragStyle since it can be inherited by the row cells and other content.
-* default: `reorder_rows_onDragClass`
-
-### dragHandle
-
-* type: String
-* description: This is the cursor to use
-* default: `null`
-
-### useRowAttrFunc
-
-* type: Boolean
-* description: This function must be use if your `tr` elements won't have the `id` attribute. If your `tr` elements don't have the `id` attribute this plugin don't fire the onDrop event.
-* default: `false`
-
-### onReorderRowsDrag
-
-* type: Function
-* description: Pass a function that will be called when the user starts dragging. The function takes 2 parameters: the table and the row which the user has started to drag.
-* default: `empty function`
-
-### onReorderRowsDrop
-
-* type: Function
-* description: Pass a function that will be called when the row is dropped. The function takes 2 parameters: the table and the row that was dropped.
-* default: `empty function`
-
-## Events
-
-### onReorderRow(reorder-row.bs.table)
-
-Fired when the row was dropped, receive as parameter the new data order
-
-## The existing problems
-
-* After search if the user reorder the rows the data is not shown properly after that.

+ 0 - 66
docs/_i18n/zh-cn/extensions/resizable.md

@@ -1,66 +0,0 @@
-# Table Resizable
-
-Use Plugin: [bootstrap-table-resizable](https://github.com/wenzhixin/bootstrap-table/tree/master/src/extensions/resizable) </br>
-Dependence: [colResizable](https://github.com/alvaro-prieto/colResizable) v1.5
-
-## Usage
-
-```html
-<script src="extensions/cookie/bootstrap-table-resizable.js"></script>
-```
-
-## Options
-
-### resizable
-
-* type: Boolean
-* description: Set true to allow the resize in each column.
-* default: `false`
-
-### liveDrag
-
-* type: Boolean
-* description: When set to true the table layout is updated while dragging column anchors. liveDrag enabled is more CPU consuming so it is not recommended for slow computers, specially when dealing with huge or extremely complicated tables.
-* default: `false`
-
-### fixed
-
-* type: Boolean
-* description: It is used to set how the resize method works. In fixed mode resizing a column does not alter total table width, which means that when a column is expanded the next one shrinks. If fixed is set to false then table can change its width and each column can shrink or expand independently.
-* default: `true`
-
-### headerOnly
-
-* type: Boolean
-* description: This attribute can be used to prevent vertical expansion of the column anchors to fit the table height. If it is set to true, column handler's size will be bounded to the first row's vertical size.
-* default: `false`
-
-### minWidth
-
-* type: Integer
-* description: This value specifies the minimum width (measured in pixels) that is allowed for the columns.
-* default: `15`
-
-### hoverCursor
-
-* type: String
-* description: This attribute can be used to customize the cursor that will be displayed when the user is positioned on the column anchors.
-* default: `e-resize`
-
-### dragCursor
-
-* type: String
-* description: Defines the cursor that will be used while the user is resizing a column.
-* default: `e-resize`
-
-### onResizableResize
-
-* type: Function
-* description: If a callback function is supplied it will be fired when the user has ended dragging a column anchor altering the previous table layout. The callback function can obtain a reference to the updated table through the currentTarget attribute of the event retrieved by parameters.
-* default: `empty function`
-
-### onResizableDrag
-
-* type: Function
-* description: This event is fired while dragging a column anchor if liveDrag is enabled. It can be useful if the table is being used as a multiple range slider. The callback function can obtain a reference to the updated table through the currentTarget attribute of the event retrieved by parameters
-* default: `empty function`

+ 0 - 53
docs/_i18n/zh-cn/extensions/toolbar.md

@@ -1,53 +0,0 @@
-# Table Toolbar
-
-Use Plugin: [bootstrap-table-toolbar](https://github.com/wenzhixin/bootstrap-table/tree/master/src/extensions/toolbar)
-
-## Usage
-
-```html
-<script src="extensions/toolbar/bootstrap-table-toolbar.js"></script>
-```
-
-## Options
-
-### advancedSearch
-
-* type: Boolean
-* description: Set true to allow the advanced search.
-* default: `false`
-
-### idForm
-
-* type: String
-* description: Must be set to know the idform.
-* default: `advancedSearch`
-
-### actionForm
-
-* type: String
-* description: Set the action of the form (pop-up).
-* default: ``
-
-### idTable
-
-* type: String
-* description: Set the id of the table to create the pop-up form.
-* default: ``
-
-## Locales
-
-### formatAdvancedSearch
-
-* description: Title of the advanced search modal
-* default: `Advanced search`
-
-### formatAdvancedCloseButton
-
-* description: Text of the close button
-* default: `Close`
-
-## Events
-
-### onColumnAdvancedSearch(column-advanced-search.bs.table)
-
-* Fired when we are searching into the advanced search form

+ 51 - 0
docs/data/extensions.json

@@ -0,0 +1,51 @@
+[
+  {
+    "name": "Table Editable",
+    "version": "1.1.0",
+    "description": "Use the x-editable to editable your table.",
+    "url": "https://github.com/wenzhixin/bootstrap-table/tree/master/src/extensions/editable",
+    "example": "http://issues.wenzhixin.net.cn/bootstrap-table/#extensions/editable.html",
+
+    "plugins": [{
+      "name": "x-editable",
+      "url": "https://github.com/vitalets/x-editable"
+    }],
+
+    "author": {
+      "name": "wenzhixin",
+      "image": "https://avatars1.githubusercontent.com/u/2117018"
+    }
+  }, {
+    "name": "Table Export",
+    "version": "1.1.0",
+    "description": "Export your table data to JSON, XML, CSV, TXT, SQL, Word, Excel, PNG, PDF.",
+    "url": "https://github.com/wenzhixin/bootstrap-table/tree/master/src/extensions/export",
+    "example": "http://issues.wenzhixin.net.cn/bootstrap-table/#extensions/export.html",
+
+    "plugins": [{
+      "name": "tableExport.jquery.plugin",
+      "url": "https://github.com/hhurz/tableExport.jquery.plugin"
+    }],
+
+    "author": {
+      "name": "wenzhixin",
+      "image": "https://avatars1.githubusercontent.com/u/2117018"
+    }
+  }, {
+    "name": "Flat JSON",
+    "version": "1.3.0",
+    "description": "Plugin to flat the JSON object.",
+    "url": "https://github.com/wenzhixin/bootstrap-table/tree/master/src/extensions/flat-json",
+    "example": "http://issues.wenzhixin.net.cn/bootstrap-table/#extensions/flat-json.html",
+
+    "plugins": [{
+      "name": "bootstrap-table-flat-json",
+      "url": "https://github.com/djhvscf/bootstrap-table-flat-json"
+    }],
+
+    "author": {
+      "name": "djhvscf",
+      "image": "https://avatars1.githubusercontent.com/u/4496763"
+    }
+  }
+]

+ 81 - 24
docs/extensions.md

@@ -5,30 +5,87 @@ slug: extensions
 lead: pages.extensions.lead
 ---
 
-{% tf extensions/cookie.md %}
+<style>
+.name {
+  font-weight: bold;
+  font-size: 200%;
+  margin-top: -20px;
+}
+.card-view {
+    margin: 15px 0;
+}
+</style>
 
-{% tf extensions/editable.md %}
+# Extensions list [](https://github.com/wenzhixin/bootstrap-table/issues)
 
-{% tf extensions/export.md %}
+<div class="row">
+  <div class="col-md-6">
+    <table data-toggle="table"
+           data-url="../data/extensions.json"
+           data-card-view="true"
+           data-response-handler="responseHandler0">
+      <thead>
+        <tr>
+        <th data-field="name" data-formatter="nameFormatter"></th>
+        <th data-field="version">Version</th>
+        <th data-field="plugins" data-formatter="pluginsFormatter">Plugins</th>
+        <th data-field="description">Description</th>
+        <th data-field="button" data-formatter="buttonFormatter"></th>
+        </tr>
+      </thead>
+    </table>
+  </div>
+  <div class="col-md-6">
+    <table data-toggle="table"
+           data-url="../data/extensions.json"
+           data-card-view="true"
+           data-response-handler="responseHandler1">
+      <thead>
+        <tr>
+        <th data-field="name" data-formatter="nameFormatter"></th>
+        <th data-field="version">Version</th>
+        <th data-field="plugins" data-formatter="pluginsFormatter">Plugins</th>
+        <th data-field="description">Description</th>
+        <th data-field="button" data-formatter="buttonFormatter"></th>
+        </tr>
+      </thead>
+    </table>
+  </div>
+</div>
 
-{% tf extensions/filter-control.md %}
-
-{% tf extensions/filter.md %}
-
-{% tf extensions/flat-json.md %}
-
-{% tf extensions/key-events.md %}
-
-{% tf extensions/mobile.md %}
-
-{% tf extensions/multiple-sort.md %}
-
-{% tf extensions/natural-sorting.md %}
-
-{% tf extensions/reorder-columns.md %}
-
-{% tf extensions/reorder-rows.md %}
-
-{% tf extensions/resizable.md %}
-
-{% tf extensions/toolbar.md %}
+<script>
+  function nameFormatter(v, row) {
+    return [
+      '<div class="name">',
+      '<a title="' + row.author.name + '" href="https://github.com/' + row.author.name + '" target="_blank">',
+      '<img src="' + row.author.image + '" width="64"> ',
+      '</a>',
+      row.name,
+      '</div>'
+    ].join('');
+  }
+  function pluginsFormatter(plugins) {
+    var html = [];
+    $.each(plugins, function (i, plugin) {
+      html.push('<a href="' + plugin.url + '" target="_blank">' + plugin.name + '</a>');
+    });
+    return html.join(', ');
+  }
+  function buttonFormatter(value, row) {
+    return [
+      '<a class="btn btn-primary" href="' + row.url + '" target="_blank">Home</a>  ',
+      '<a class="btn btn-default" href="' + row.example + '" target="_blank">Example</a>'
+    ].join('');
+  }
+  function responseHandler0(res) {
+    return responseHandler(res, 0);
+  }
+  function responseHandler1(res) {
+    return responseHandler(res, 1);
+  }
+  function responseHandler(res, n) {
+    return $.grep(res, function (item, i) {
+      return i % 2 === n;
+    });
+  }
+</script>

+ 17 - 0
src/extensions/editable/extension.json

@@ -0,0 +1,17 @@
+{
+  "name": "Table Editable",
+  "version": "1.1.0",
+  "description": "Use the x-editable to in-place editing your table.",
+  "url": "https://github.com/wenzhixin/bootstrap-table/tree/master/src/extensions/editable",
+  "example": "http://issues.wenzhixin.net.cn/bootstrap-table/#extensions/editable.html",
+
+  "plugins": [{
+    "name": "x-editable",
+    "url": "https://github.com/vitalets/x-editable"
+  }],
+
+  "author": {
+    "name": "wenzhixin",
+    "image": "https://avatars1.githubusercontent.com/u/2117018"
+  }
+}

+ 17 - 0
src/extensions/export/extension.json

@@ -0,0 +1,17 @@
+{
+  "name": "Table Export",
+  "version": "1.1.0",
+  "description": "Export your table data to JSON, XML, CSV, TXT, SQL, Word, Excel, PNG, PDF.",
+  "url": "https://github.com/wenzhixin/bootstrap-table/tree/master/src/extensions/export",
+  "example": "http://issues.wenzhixin.net.cn/bootstrap-table/#extensions/export.html",
+
+  "plugins": [{
+    "name": "tableExport.jquery.plugin",
+    "url": "https://github.com/hhurz/tableExport.jquery.plugin"
+  }],
+
+  "author": {
+    "name": "wenzhixin",
+    "image": "https://avatars1.githubusercontent.com/u/2117018"
+  }
+}

+ 17 - 0
src/extensions/flat-json/extension.json

@@ -0,0 +1,17 @@
+{
+  "name": "Flat JSON",
+  "version": "1.3.0",
+  "description": "Plugin to flat the JSON object.",
+  "url": "https://github.com/wenzhixin/bootstrap-table/tree/master/src/extensions/flat-json",
+  "example": "http://issues.wenzhixin.net.cn/bootstrap-table/#extensions/flat-json.html",
+
+  "plugins": [{
+    "name": "bootstrap-table-flat-json",
+    "url": "https://github.com/djhvscf/bootstrap-table-flat-json"
+  }],
+
+  "author": {
+    "name": "djhvscf",
+    "image": "https://avatars1.githubusercontent.com/u/4496763"
+  }
+}