0.0.2 • Published 8 years ago

react-restful-table v0.0.2

Weekly downloads
4
License
ISC
Repository
github
Last release
8 years ago

react-restful-table

react table with restful CRUD

git clone https://github.com/fangj/react-restful-table cd react-restful-table/examples node app.js

visit http://localhost:3000

edit table

usage:

var RestfulTabl=require('react-restful-table');

var selectRowProp = {
          mode: "radio",
          clickToSelect: true,
          bgColor: "rgb(238, 193, 213)"
        };
        
ReactDOM.render(
   <RestfulTable url='/api/post' keyField="_id" 
    insertRow={true} deleteRow={true} selectRow={selectRowProp}>                
	      <TableHeaderColumn dataField="title" >title</TableHeaderColumn>
	      <TableHeaderColumn dataField="content" >content</TableHeaderColumn>
	</RestfulTable>,
  document.getElementById('container')
);