1.0.16 • Published 6 years ago

bootstrap-react-table v1.0.16

Weekly downloads
3
License
MIT
Repository
github
Last release
6 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

6 years ago

1.0.15

6 years ago

1.0.14

6 years ago

1.0.13

6 years ago

1.0.12

6 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago