react-bootstrap-table2/docs
Allen 10f06dca10 fix #104
* implement row seleciton style and class

* add testing for row selection style and class

* refine select row test

* add stories for row selection style and class

* add docs for row selection style and class

* patch for wrong docs
2017-10-20 00:44:25 -05:00
..
cell-edit.md refine row selection 2017-10-18 01:13:06 -05:00
columns.md fix #104 2017-10-20 00:44:25 -05:00
development.md Improve development setup experience by fixing misspelled areas 2017-10-07 04:16:33 -05:00
README.md refine row selection 2017-10-18 01:13:06 -05:00
row-selection.md fix #104 2017-10-20 00:44:25 -05:00

Documents

Props on BootstrapTable

Required

Optional

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.

caption - [String | Node]

Same as caption tag in HTML. You can give a String or a React JSX.

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

cellEdit - [Object]

cellEdit allow you to enable cell editing on table, please see cellEdit definition for more detail.

selectRow - [Object]

selectRow allow you to have a mechanism to select rows, please see selectRow definition for more detail.