sbx-react-table

4.89.0 • Public • Published

sbx-react-table


sbx i --save sbx-react-table
import Dropdown from 'sbx-react-table';

<Table
    name="fiatDeposits"
    className="table-striped"
    ref={e => this.table = e}
    action={() => {
        return new Promise(resolve => {
            setTimeout(() => {
                resolve(tableData)
            }, 1000)
        })
    }}
    structure={{
        id: {
            name: 'ID',
            filter: {
                type: 'search'
            },
        },
        name: {
            name: 'Name',
            filter: {
                type: 'search'
            },
            val(row) {
                return row.first_name + ' ' + row.last_name
            }
        },
        email: {
            name: 'email',
            filter: {
                type: 'search'
            },
        },
        date: {
            name: 'Date',
            filter: {
                type: 'date'
            },
        },
        phone: {
            name: 'phone',
            filter: {
                type: 'search'
            },
        },
        position: {
            name: 'position',
            filter: {
                type: 'select',
                options: [
                    {value: 1},
                    {value: 2},
                    {value: 3},
                ]
            }

        },
        role: {
            name: 'role',
            filter: {
                type: 'search'
            },
        },
    }}
/>

Readme

Keywords

none

Package Sidebar

Install

npm i sbx-react-table

Weekly Downloads

54

Version

4.89.0

License

none

Unpacked Size

674 kB

Total Files

45

Last publish

Collaborators

  • v.sobix