1.2.1 • Published 8 years ago

bootstrap-table-react v1.2.1

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

npm version Build Status Dependency Status devDependency Status

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
        })
    }

    // ...

}
1.2.1

8 years ago

1.2.0

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago