0.0.25 • Published 4 years ago
react-simple-expandable-table v0.0.25
react-simple-expandable-table
Simple expandable table component for React
Source code at https://github.com/dabarma/react-simple-expandable-table
Installation
npm install --save react-simple-expandable-tableor
yarn add react-simple-expandable-tableUsage
import React from 'react';
import { ReactSimpleExpandableTable, ReactSimpleExpandableTableData } from 'react-simple-expandable-table';
function Demo(){
const tableDefinition: ReactSimpleExpandableTableData = {
columns: [
{
description: 'col1',
dataBinding: 'col1-data',
},
{
description: 'col2',
dataBinding: 'col2-data'
},
],
rows: [
{
data: {
'col1-data': 'test1',
'col2-data': 'test2'
},
rows: [
{
data: {
'col1-data': 'test1-1',
'col2-data': 'test2-1'
},
rows: [
{
data: {
'col1-data': 'test1-1-1',
'col2-data': 'test2-1-1'
}
}
]
}
]
},
{
data: {
'col1-data': 'test3',
'col2-data': 'test4'
},
}
]
}
return(
<ReactSimpleExpandableTable data={tableDefinition}></ReactSimpleExpandableTable>
)
}
export default Demo;0.0.25
4 years ago
0.0.24
4 years ago
0.0.23
4 years ago
0.0.22
4 years ago
0.0.21
4 years ago
0.0.20
4 years ago
0.0.14
4 years ago
0.0.13
4 years ago
0.0.12
4 years ago
0.0.11
4 years ago
0.0.10
4 years ago
0.0.9
4 years ago
0.0.8
4 years ago
0.0.7
4 years ago
0.0.6
4 years ago
0.0.5
4 years ago
0.0.4
4 years ago
0.0.3
4 years ago
0.0.2
4 years ago
0.0.1
4 years ago