Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-simple-expandable-table

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-simple-expandable-table

Simple expandable table component for React

  • 0.0.10
  • unpublished
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

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 from 'react-simple-expandable-table';

function Demo(){

    const data = {
    columns: [
      {
        description: 'col1',
        dataBinding: 'col1-data',
        render: (data)=> {
          return <div>{data}rendered</div>
        }
      },
      {
        description: 'col2',
        dataBinding: 'col2-data'
      },
      {
        description: 'col3',
        dataBinding: 'col3-data'
      },
      {
        description: 'col4',
        dataBinding: 'col4-data'
      },
      {
        description: 'col5',
        dataBinding: 'col5-data'
      }
    ],
    rows: [
      {
        'col1-data': 'test1',
        'col2-data': 'test2',
        'col3-data': 'test3',
        'col4-data': 'test4',
        'col5-data': 'test5',
        rows: [
            {
                'col1-data': 'test1-1',
                'col2-data': 'test2-1',
                'col3-data': 'test3-1',
                'col4-data': 'test4-1',
                'col5-data': 'test5-1'
            }
      }
    ]
  }

    return(
        <React.Fragment>
            <div>
                <ReactSimpleExpandableTable 
                    data={data}
                />    
            </div> 
        </React.Fragment>
    )
}

export default Demo;

Keywords

FAQs

Package last updated on 29 Jun 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc