mirror of
https://github.com/gosticks/react-bootstrap-table2.git
synced 2025-10-16 11:55:39 +00:00
* redefine cell callback function * it takes 4 argus `content`, `row`, `rowIndex` and `columnIndex` in * sequence. * [test] fix unit test for new callback * correct the version of story for new cell callback * [DOC] re-define structure of Contents of Table * [DOC] update document for attrs * re-write description for each column props * [DOC] update document for headerCell * re-write and add extra description for each header column props |
||
|---|---|---|
| .. | ||
| columns.md | ||
| development.md | ||
| README.md | ||
Documents
Props on BootstrapTable
keyField(required) - [String]
keyField is a prop to tell react-bootstrap-table2 which column is unigue key.
data(required) - [Array]
Assign your table data via data prop. It only accept an Array object.
columns(required) - [Object]
columns props accept an Array object, please see columns definition for more detail.
striped - [Bool]
Same as .table-striped class for adding zebra-stripes to a table
bordered - [Bool]
Same as .table-bordered class for adding borders on all sides of the table and cells
hover - [Bool]
Same as .table-hover class for adding a hover effect (grey background color) on table rows
condensed - [Bool]
Same as .table-condensed class for makeing a table more compact by cutting cell padding in half