mirror of
https://github.com/gosticks/react-bootstrap-table2.git
synced 2026-02-04 07:42:41 +00:00
* allow user to customize attrs for column cell * [test] add test for customized cell attrs * allow user to customize attrs for header column cell * [test] add test for customized header cell attrs * update document * add new utils isObject and isEmptyObject * make cell attrs lowest priority * if style, event, classes, hidden, style was not given, display the * HTML attributes if it's legal. However, if the attributes mentioned * above was defined at the same time, column.attrs has lowest priority * and it will be overwrited. * [test] unit test for column.attrs * [test] unit test for column.headerAttrs * update Document * rename story name * fix lint error |
||
|---|---|---|
| .. | ||
| 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