All Projects → AllenFang → React Bootstrap Table

AllenFang / React Bootstrap Table

Licence: mit
A Bootstrap table built with React.js

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to React Bootstrap Table

ag-grid
The best JavaScript Data Table for building Enterprise Applications. Supports React / Angular / Vue / Plain JavaScript.
Stars: ✭ 8,743 (+290.66%)
Mutual labels:  table, react-table
react-datatable
React-datatable is a component which provide ability to create multifunctional table using single component like jQuery Datatable. It's fully customizable and easy to integrate in any react component. Bootstrap compatible.
Stars: ✭ 72 (-96.78%)
Mutual labels:  table, react-table
react-table-library
🍱 React Table Library
Stars: ✭ 135 (-93.97%)
Mutual labels:  table, react-table
ctablex
Featureable, flexible and powerful react table.
Stars: ✭ 17 (-99.24%)
Mutual labels:  table, react-table
tablex
virtualized and extendable tables and datagrids for React
Stars: ✭ 39 (-98.26%)
Mutual labels:  table, react-table
element-table
An extended table to integration with bootstrap-table and element-ui.
Stars: ✭ 18 (-99.2%)
Mutual labels:  table, bootstrap-table
Bootstrap Table
An extended table to integration with some of the most widely used CSS frameworks. (Supports Bootstrap, Semantic UI, Bulma, Material Design, Foundation, Vue.js)
Stars: ✭ 11,068 (+394.55%)
Mutual labels:  table, bootstrap-table
Window Table
Windowing Table for React based on React Window
Stars: ✭ 160 (-92.85%)
Mutual labels:  table
Json2html
🐍 Python module for converting complex JSON to HTML Table representation
Stars: ✭ 173 (-92.27%)
Mutual labels:  table
Vue Ui For Pc
基于Vue2.x的一套PC端UI组件,包括了Carousel 跑马灯、Cascader 级联、Checkbox 多选框、Collapse 折叠面板、DatePicker 日期选择、Dialog 对话框、Form 表单、Input 输入框、InputNumber 数字输入框、Layer 弹窗层、Loading 加载、Menu 菜单、Page 分页、Progress 进度条、Radio 单选框、SelectDropDown 仿select、Switch 开关、Table 表格、Tabs 标签页、Textarea 文本框、Tooltip 文字提示、BackTop 返回顶部、steps 步骤条、Transfer 穿梭框、Tree 树形、Upload 文件上传、Lazy 图片懒加载、Loading 加载、Pagination 分页等等
Stars: ✭ 156 (-93.03%)
Mutual labels:  table
Sematable
ReactJS / Redux Data Table
Stars: ✭ 155 (-93.07%)
Mutual labels:  table
Table rex
An Elixir app which generates text-based tables for display
Stars: ✭ 161 (-92.81%)
Mutual labels:  table
Egrid
对 element-ui table 组件的封装
Stars: ✭ 175 (-92.18%)
Mutual labels:  table
Comfy Table
🔶 Build beautiful terminal tables with automatic content wrapping
Stars: ✭ 156 (-93.03%)
Mutual labels:  table
Restable
jQuery plugin that makes tables responsive converting them to HTML lists on small viewports.
Stars: ✭ 183 (-91.82%)
Mutual labels:  table
Ngrid
A angular grid for the enterprise
Stars: ✭ 157 (-92.98%)
Mutual labels:  table
Vue Bootstrap4 Table
Advanced table based on Vue 2 and Bootstrap 4 ⚡️
Stars: ✭ 187 (-91.64%)
Mutual labels:  table
Json table
Flutter package: Json Table Widget to create table from json array
Stars: ✭ 178 (-92.05%)
Mutual labels:  table
Converter
database table to golang struct (table to struct) converter with cli and go lib support
Stars: ✭ 167 (-92.54%)
Mutual labels:  table
Markdown Table
Markdown tables, with alignment
Stars: ✭ 164 (-92.67%)
Mutual labels:  table

react-bootstrap-table

react-bootstrap-table2 already released, this project will stop development after 2018Q2

Join the chat at https://gitter.im/AllenFang/react-bootstrap-table

NPM version Build Status

Dependency Status devDependency Status peerDependency Status
It's a react.js table for bootstrap, named react-bootstrap-table. It's a configurable, functional table component and make you build a Bootstrap Table more efficiency and easy in your React application, However react-bootstrap-table support these features:

  • Striped, borderless, condensed table
  • Column align, hidden, width, sort, title, styling, customization
  • Table scrolling
  • Cell format
  • Pagination
  • Row selection
  • Table Search, Column filter
  • Cell editor
  • Insert & delete Row
  • Export to CSV
  • Rich function hooks
  • Header column span
  • Remote mode
  • Row expand
  • Key board navigation

Example See more about react-bootstrap-table and explore more examples on examples folder
Check the CHANGELOG for more detail release notes.

Notes

v4.0.0 released, this release mainly replace react-toastr with react-s-alert

  1. Replace react-toastr by react-s-alert
  2. Use prop-types
  3. Support bootstrap@4 and bootstrap@3 both. If you use 4, please add version='4' on <BootstrapTable>
  4. No important features were implemented, most of bug fixes and improvement

After v2.4.4, we move the css files to dist folder for allowing this repo can be hosted on cdnjs

Development

react-bootstrap-table dependencies on react.js and Bootstrap 3, also written by ES6 and use gulp and browserify for building and bundling.

You can use the following commands to prepare development

$ git clone https://github.com/AllenFang/react-bootstrap-table.git
$ cd react-bootstrap-table
$ npm install

See the examples for react-bootstrap-table

$ npm start # see all examples, go to localhost:3004

Usage

a.Install

npm install react-bootstrap-table --save

b.Import Module

To use react-bootstrap-table in your react app, you should import it first. You can do this in two ways:

With a module bundler

With a module bundler like webpack that supports either CommonJS or ES2015 modules, use as you would anything else.
You can include source maps on your build system to debug on development. Don't forget to Uglify on production.

// in ECMAScript 6
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
// or in ECMAScript 5
var ReactBSTable = require('react-bootstrap-table');  
var BootstrapTable = ReactBSTable.BootstrapTable;
var TableHeaderColumn = ReactBSTable.TableHeaderColumn;
Browser global(window object)

In the dist folder you have a UMD bundle with source maps (react-bootstrap-table.js) as well as a minified version (react-bootstrap-table.min.js).

<script src="path/to/react-bootstrap-table/dist/react-bootstrap-table.min.js" />
<script>
  var ReactBsTable = window.BootstrapTable;
  //...
</script>

The UMD build is also available on npmcdn:

// source maps: https://npmcdn.com/react-bootstrap-table/dist/react-bootstrap-table.js.map
<script src="https://npmcdn.com/react-bootstrap-table/dist/react-bootstrap-table.js"></script>
// or use the min version
<script src="https://npmcdn.com/react-bootstrap-table/dist/react-bootstrap-table.min.js"></script>

c.Import CSS

Finally, you need to import the css file to your app:

<!-- we still need bootstrap css -->
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
<link rel="stylesheet" href="./dist/react-bootstrap-table.min.css">

The CSS files you can find in the css folder.

Quick Demo

// products will be presented by react-bootstrap-table
var products = [{
      id: 1,
      name: "Item name 1",
      price: 100
  },{
      id: 2,
      name: "Item name 2",
      price: 100
  },........];
// It's a data format example.
function priceFormatter(cell, row){
  return '<i class="glyphicon glyphicon-usd"></i> ' + cell;
}

React.render(
  <BootstrapTable data={products} striped={true} hover={true}>
      <TableHeaderColumn dataField="id" isKey={true} dataAlign="center" dataSort={true}>Product ID</TableHeaderColumn>
      <TableHeaderColumn dataField="name" dataSort={true}>Product Name</TableHeaderColumn>
      <TableHeaderColumn dataField="price" dataFormat={priceFormatter}>Product Price</TableHeaderColumn>
  </BootstrapTable>,
	document.getElementById("app")
);

More react-bootstrap-table examples

The example source codes are in the examples folder folder. Run the following commands for a live demo.

$ git clone https://github.com/AllenFang/react-bootstrap-table.git
$ cd react-bootstrap-table
$ npm install
$ npm start # after start, open browser and go to http://localhost:3004

Documentation

Thanks

luqin
Help this project to integrate a better examples demo, add travis & badge, code formatting, give a lot of suggestions and bugs report.
Whien
Implement a lots of awesome new feature and also fix some bugs and enhancements.
Parth Prajapati
Help to check issues and give great and useful instructions.
khinlatt
Contribute export csv, multi-search and bug fixing.
dana
Contribute a new colum-filter design and great feedback given.
tbaeg
Bugs report and give some bootstrap and css suggestions actively.
bluedarker
Contribute the edit format & validation on cell editing and row insertion. Improve the custom styling.
Sofia Silva
Bug reports and fixing actively.
frontsideair
Fixing bugs and give improvement for functionality.
aaronhayes
Bugs report and enhance the cell formatting.
Reggino
Implement the TableDataSet component.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].