bootstrap-table-react
v1.2.1
Published
Simple bootstrap table in react
Downloads
22
Keywords
Readme
bootstrap-table-react
A simple bootstrap table in react.
propTypes
A snippet is worth a thousand words.
const column = PropTypes.shape({
key: PropTypes.string.isRequired,
formattedKey: PropTypes.oneOfType([PropTypes.element, PropTypes.string]),
valueFormatter: PropTypes.func
});
const item = PropTypes.shape({
id: PropTypes.string.isRequired
});
export default class Table {
static propTypes = {
className: PropTypes.string,
collection: PropTypes.arrayOf(item).isRequired,
columns: PropTypes.arrayOf(
PropTypes.oneOfType([PropTypes.string, column])
).isRequired,
onRowClick: PropTypes.func,
tableOptions: PropTypes.shape({
bordered: PropTypes.bool,
condensed: PropTypes.bool,
hover: PropTypes.bool,
responsive: PropTypes.bool,
striped: PropTypes.bool
})
}
// ...
}