Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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