0.0.25 • Published 2 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-table
or
yarn add react-simple-expandable-table
Usage
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
2 years ago
0.0.24
2 years ago
0.0.23
2 years ago
0.0.22
2 years ago
0.0.21
2 years ago
0.0.20
2 years ago
0.0.14
2 years ago
0.0.13
2 years ago
0.0.12
2 years ago
0.0.11
2 years ago
0.0.10
2 years ago
0.0.9
2 years ago
0.0.8
2 years ago
0.0.7
2 years ago
0.0.6
2 years ago
0.0.5
2 years ago
0.0.4
2 years ago
0.0.3
2 years ago
0.0.2
2 years ago
0.0.1
2 years ago