1.0.16 • Published 8 years ago

bootstrap-react-table v1.0.16

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

#bootstrap-react-table

##Usage ###Installation

npm install bootstrap-react-table --save

Example:

import React from 'react';
import BootstrapTable from 'bootstrap-react-table';

const columns = [
    {
        id: 'position',
        name: '#',
        first: true,
    },
    {
        id: 'name',
        name: 'Name'
    },
    {
        id: 'quantity',
        name: 'Quantity'
    }
];

const data = [
    {
        position: 1,
        name: 'Black shoes',
        quantity: 12
    }
]

class Table extends React.Component {
    constructor () {
        super();
        this.onRowClick = this.onRowClick.bind(this);
    }
    
    onRowClick (e, index){
        console.log(index)
    }

    return (
        <div>
            <BootstrapTable 
                columns={columns} 
                data={data} 
                onRowClick={this.onRowClick} 
            />
        </div>
    );
}
1.0.16

8 years ago

1.0.15

8 years ago

1.0.14

8 years ago

1.0.13

8 years ago

1.0.12

8 years ago

1.0.11

8 years ago

1.0.10

8 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago