mirror of
https://github.com/gosticks/react-bootstrap-table2.git
synced 2025-10-16 11:55:39 +00:00
20180903 release
This commit is contained in:
parent
6905c4dfa8
commit
b34827667b
@ -25,6 +25,7 @@ const cellEdit = cellEditFactory({
|
|||||||
* [timeToCloseMessage](#celledittimetoclosemessage-function)
|
* [timeToCloseMessage](#celledittimetoclosemessage-function)
|
||||||
* [beforeSaveCell](#celleditbeforesavecell-function)
|
* [beforeSaveCell](#celleditbeforesavecell-function)
|
||||||
* [afterSaveCell](#celleditaftersavecell-function)
|
* [afterSaveCell](#celleditaftersavecell-function)
|
||||||
|
* [onStartEdit](#celleditonstartedit-function)
|
||||||
* [errorMessage](#cellediterrormessage-string)
|
* [errorMessage](#cellediterrormessage-string)
|
||||||
* [onErrorMessageDisappear](#celleditonerrormessagedisappear-function)
|
* [onErrorMessageDisappear](#celleditonerrormessagedisappear-function)
|
||||||
|
|
||||||
@ -62,6 +63,16 @@ const cellEdit = {
|
|||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## cellEdit.onStartEdit - [Function]
|
||||||
|
This callback function will be called after editor component mounted
|
||||||
|
|
||||||
|
```js
|
||||||
|
const cellEdit = {
|
||||||
|
// omit...
|
||||||
|
onStartEdit: (row, column, rowIndex, columnIndex) => { ... }
|
||||||
|
};
|
||||||
|
```
|
||||||
|
|
||||||
## cellEdit.errorMessage - [String]
|
## cellEdit.errorMessage - [String]
|
||||||
This prop is not often used. Only used when you want to keep the error message in your application state and also handle the cell editing on [`remote`](./table-props.html#remote-bool-object) mode.
|
This prop is not often used. Only used when you want to keep the error message in your application state and also handle the cell editing on [`remote`](./table-props.html#remote-bool-object) mode.
|
||||||
|
|
||||||
|
|||||||
@ -10,6 +10,7 @@ Definition of columns props on BootstrapTable
|
|||||||
* [text (**required**)](#columntext-required-string)
|
* [text (**required**)](#columntext-required-string)
|
||||||
|
|
||||||
## Optional
|
## Optional
|
||||||
|
* [isDummyField](#columnisdummyfield-bool)
|
||||||
* [hidden](#columnhidden-bool)
|
* [hidden](#columnhidden-bool)
|
||||||
* [formatter](#columnformatter-function)
|
* [formatter](#columnformatter-function)
|
||||||
* [formatExtraData](#columnformatextradata-any)
|
* [formatExtraData](#columnformatextradata-any)
|
||||||
@ -70,6 +71,12 @@ dataField: 'address.city'
|
|||||||
## column.text (**required**) - [String]
|
## column.text (**required**) - [String]
|
||||||
`text` will be the column text in header column by default, if your header is not only text or you want to customize the header column, please check [`column.headerFormatter`](#columnheaderformatter-function)
|
`text` will be the column text in header column by default, if your header is not only text or you want to customize the header column, please check [`column.headerFormatter`](#columnheaderformatter-function)
|
||||||
|
|
||||||
|
## column.isDummyField - [Bool]
|
||||||
|
Sometime, you just want to have a column which is not perform any data but just some action components. In this situation, we suggest you to use `isDummyField`. If column is dummy, the [`column.dataField`](#dataField) can be any string value, cause of it's meaningless. However, please keep `dataField` as unique as possible.
|
||||||
|
|
||||||
|
There's only one different for dummy column than normal column, which is dummy column will compare the whole row value instead of cell value when call `shouldComponentUpdate`.
|
||||||
|
|
||||||
|
|
||||||
## column.hidden - [Bool]
|
## column.hidden - [Bool]
|
||||||
`hidden` allow you to hide column when `true` given.
|
`hidden` allow you to hide column when `true` given.
|
||||||
|
|
||||||
|
|||||||
@ -14,6 +14,7 @@ Export CSV in one of features supported by `react-bootstrap-table2-toolkit`. By
|
|||||||
* [ignoreHeader](#exportCSVignoreheader-bool)
|
* [ignoreHeader](#exportCSVignoreheader-bool)
|
||||||
* [noAutoBOM](#exportCSVnoautobom-bool)
|
* [noAutoBOM](#exportCSVnoautobom-bool)
|
||||||
* [exportAll](#exportCSVexportall-bool)
|
* [exportAll](#exportCSVexportall-bool)
|
||||||
|
* [onlyExportSelection](#exportCSVonlyexportselection-bool)
|
||||||
|
|
||||||
## Example
|
## Example
|
||||||
|
|
||||||
@ -49,3 +50,6 @@ Default is `true`.
|
|||||||
|
|
||||||
## exportCSV.exportAll - [bool]
|
## exportCSV.exportAll - [bool]
|
||||||
Default is `true`. `false` will only export current display data on table.
|
Default is `true`. `false` will only export current display data on table.
|
||||||
|
|
||||||
|
## exportCSV.onlyExportSelection - [bool]
|
||||||
|
Default is `false`. `true` will only export the data which is selected
|
||||||
27
website/blog/2018-09-03-version-bump.md
Normal file
27
website/blog/2018-09-03-version-bump.md
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
---
|
||||||
|
title: New Release (2018-09-03)
|
||||||
|
author: Allen Fang
|
||||||
|
authorURL: https://twitter.com/allenfang_tw
|
||||||
|
---
|
||||||
|
|
||||||
|
## Changed Packages
|
||||||
|
|
||||||
|
This release bump following packages:
|
||||||
|
|
||||||
|
* `react-bootstrap-table-next@1.1.4`
|
||||||
|
* `react-bootstrap-table2-editor@1.0.1`
|
||||||
|
* `react-bootstrap-table2-toolkit@1.0.3`
|
||||||
|
|
||||||
|
|
||||||
|
## Changelog
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
* Fixed `selectRow.onSelectAll` will return `undefined` value after search([#509](https://github.com/react-bootstrap-table/react-bootstrap-table2/issues/509))
|
||||||
|
|
||||||
|
### Features
|
||||||
|
* Support dummy column([#520](https://github.com/react-bootstrap-table/react-bootstrap-table2/issues/520))
|
||||||
|
* Enable it via `column.isDummyField`
|
||||||
|
* Able to export csv by current selected rows([#522](https://github.com/react-bootstrap-table/react-bootstrap-table2/issues/522))
|
||||||
|
|
||||||
|
### Enhancements
|
||||||
|
* Add `onStartEdit` callback which will be called when cell editor is trigger([#523](https://github.com/react-bootstrap-table/react-bootstrap-table2/issues/523))
|
||||||
Loading…
Reference in New Issue
Block a user