sbx-react-messager
v0.0.19
Published
sbx-react-messager
Downloads
19
Readme
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'
},
},
}}
/>