Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/couds/react-bootstrap-datatable
DataTable module using react and react-bootstrap
https://github.com/couds/react-bootstrap-datatable
Last synced: 28 days ago
JSON representation
DataTable module using react and react-bootstrap
- Host: GitHub
- URL: https://github.com/couds/react-bootstrap-datatable
- Owner: couds
- License: mit
- Created: 2015-12-23T19:26:34.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-05-10T22:33:57.000Z (over 8 years ago)
- Last Synced: 2024-05-02T03:46:22.772Z (6 months ago)
- Language: JavaScript
- Size: 21.5 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# react-bootstrap-datatable
DataTable module using react and react-bootstrap
## Installation
npm i --save react-bootstrap-datatable
## Usage
import {DataTable, DataColumn, Pagination} from 'react-bootstrap-datatable'
class Products extends React.Component{
constructor(){
this.dataObject = [
{
id: 1,
name: 'NodeJS',
price : "10.0",
description: 'Html description
'
},
{
id: 2,
name: 'React',
price : "15.0",
description: 'Html description
'
}
]
}
transform = (row, value) => {
return `$ ${value}`
}
render(){
let typesOptions = {
caseSensitive : false,//False by default
options : [
{
value : 'android',
title: 'Android'
},
{
value : 'ios',
title: 'Apple'
},
{
value : 'windows',
title: 'Windows Phone'
}
]
}
return(
Title as Children too
)
}
}
## Tests
No test implemented yet
## Contributing
## Release History
* 0.0.1 Initial release
* 0.0.2 Bug Fix sorting no string columns, Bug Fix multi-column search
* 0.0.3 Move react dependency to peerDependencies to avoid problems with the react version
* 0.0.4 Allow combobox in column search
* 0.0.5 add Styles to datatable dtStyle=[default, dark]
* 0.0.6 bug fix: set current page to 1 when starting a search
* 0.0.7 bug fix: configuration problem