Go to file
chunming 877259158e fix #50
* implement row single and multiple selection

* radio button for single, checkbox for multiple
* update component if status was changing

* implement header cell for row selection

* render checkbox for multiple, nothing for single
* default css for th[data-th-row-selection]
* update component if status was changing

* transform cursor to pointer when hover button radio and checkbox

* story for single and multiple rows selection

* remove props required field and turn off eslint

* [test] adapt with other component

* props resolver for cell selection

* if row selection was disabled, return mode 'ROW_SELECT_DISABLED'

* refactor row selection cell

* rename to selection-cell
* remove unnecessary props
* better coding style

* props resolver for header cell selection

* refactor row selection for header cell

* rename to selection-header-cell
* remove unnecessary props
* better coding style
* new logic for handleSelectAllRows

* tunning for multi selection logic

* allow user to customize select all result
* remove cursor point
* remove uncessary utils

* tunning for function naming

* mock data for resolved props including both body and header

* judge cell-editable and row-selectable with mode

* [test] unit test for props-resolver

* move position of test case of cellEdit
* add test for resolveCellSelectionProps
* add test for resolveHeaderCellSelectionProps
* accept row keys for mock-component

* [test] add test for body

* [test] add test for header

* [test] add test for row

* [test] add test for selection-cell

* fix typo

* [test] add test for selection-header-cell

* add test for checkbox in selection-header-cell

* [test] add test for bootstrap-table

* test for handleRowSelect

* test for handleAllRowsSelect

* remove uncessary prop

* remove unnecessary dafault mode for selectRow

* add description for props shape
* remove uncessary declaration of inputType
* add isRequred for selectRow.mode

* [test] verify the correctness of params when clicking on selection cell

* [test] modification for test wording and unmatched data type

* handle logic of row selection inside the store

* ignore the situation of pagination
* correct the tests

* [test] add test for store/base.js

* Document for row selection

* modication for defects

* simplify proptypes to basic data type
* row selection document in README
* refactor all function test with sinon

* refactor all mock function to sinon.stub() instead jest.fn()

* fix conflict
2017-10-11 10:28:53 -05:00
docs fix #50 2017-10-11 10:28:53 -05:00
packages fix #50 2017-10-11 10:28:53 -05:00
.babelrc init for starting develop 2017-08-19 14:55:04 +08:00
.eslintrc Enhancement/code prettify (#46) 2017-09-03 00:31:58 -05:00
.gitignore setup enhancement 2017-09-08 21:58:26 -05:00
.travis.yml Improve yarn install for travis 2017-10-11 09:53:01 -05:00
CONTRIBUTING.md Improve development setup experience by fixing misspelled areas 2017-10-07 04:16:33 -05:00
lerna.json setup enhancement 2017-09-08 21:58:26 -05:00
package.json fix #60 2017-09-20 11:18:57 -05:00
README.md README 2017-08-14 21:05:29 +08:00
webpack.config.babel.js fix #40 2017-09-02 06:10:24 -05:00
yarn.lock setup enhancement 2017-09-08 21:58:26 -05:00

react-bootstrap-table2

Rebuilt react-bootstrap-table

The problems/features I want to solve

  • Performance
  • Fully compatiable with bootstrap 3 and 4(react-bootstrap-table@4.0.0 already done)
  • Clean Code and Testing
  • Decrease the size of bundled file
  • Split module/functionality from core module, make core module more lightweight
  • Use storybook to build examples
  • Support the aggregation(summary) view
  • Support the table footer
  • Support column/row span on header and body
  • Support sticky header
  • Support table section(react-bootstrap-table#721)
  • Handle events well
  • Fix unalign issues
  • Make stateless table more easy to use(react-bootstrap-table alread have remote mode but have some bugs)
  • Customizable table
  • Support the nested data(react-bootstrap-table#50)
  • Consider to support column resize
  • Consider to make animation on react-bootstrap-table2 more easy

The feature may lost on react-bootstrap-table

  • Have a great chance that I don't support the vertical scrollbar on table