Cell Edit
react-bootstrap-table2 separate the cell edit code base to react-bootstrap-table2-editor, so there's a little bit different when you use cell edit than react-bootstrap-table. In the following, we are going to show you how to enable the cell edit
Live Demo For Cell Edit
+API & Props Definition
Install
$ npm install react-bootstrap-table2-editor --save
diff --git a/docs/basic-column.html b/docs/basic-column.html
index 0956cbe..dc49051 100644
--- a/docs/basic-column.html
+++ b/docs/basic-column.html
@@ -6,7 +6,8 @@
};
Work on Column
Firstly, legacy react-bootstrap-table is hard to customize the DOM Event, Attributes on column or header column. In the react-bootstrap-table2, we make those bad design become more easy and flexible.
Live Demo For Column
-Live Demo For Header Column
+API & Props Definition
Formatting Table Column
column.formatter is a good chance for you to customize the cell. If you just want to add some styling, attributes or DOM event linstener, react-bootstrap-table2 have respective props to handle:
Column Filter
react-bootstrap-table2 separate the filter core code base to react-bootstrap-table2-filter, so there's a little bit different when you use column filter than react-bootstrap-table. In the following, we are going to show you how to enable the column filter:
Live Demo For Column Filter
+API & Props Definition
Install
$ npm install react-bootstrap-table2-filter --save
diff --git a/docs/basic-pagination.html b/docs/basic-pagination.html
index 96dcb0a..1cdc53f 100644
--- a/docs/basic-pagination.html
+++ b/docs/basic-pagination.html
@@ -5,7 +5,8 @@
nav.classList.toggle('docsSliderActive');
};
Pagination
react-bootstrap-table2 separate the pagination code base to react-bootstrap-table2-pagination, so there's a little bit different when you use pagination. In the following, we are going to show you how to enable and configure the a pagination table
Live Demo For Pagination
+API & Props Definition
Install
$ npm install react-bootstrap-table2-pagination --save
diff --git a/docs/basic-remote.html b/docs/basic-remote.html
index 85cb8e2..76ff2ce 100644
--- a/docs/basic-remote.html
+++ b/docs/basic-remote.html
@@ -6,6 +6,7 @@
};
Remote Table
What is Remote
By default, react-bootstrap-table2 always handle the data changes internally, such as sorting, paging, filtering etc. However, you may want to handle those logic or sync up to backend or Redux store so that remote can help you on it as well.
How
Make sure you already see remote props on BootstrapTable firstly. In the beginning, you can assign true to enable the remote mode on table but few people doing like that, because it will enable all the functionalities(sort, filter etc) become remote mode.
Row Selection
For the table row selection functionality, the usage is almost same as react-bootstrap-table. If you are a user from legacy react-bootstrap-table, you can consider to skip this part.
Live Demo For Row Selection
+API & Props Definition
Selection Mode
We support the single and multiple selection on table, config the selectRow.mode on BootstrapTable will enable the selection on the table.