New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-data-table-oc

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-data-table-oc

Table component for react, search, paginate and sort data

latest
Source
npmnpm
Version
1.1.1
Version published
Maintainers
1
Created
Source

info

Created for openclassroom project, build with react, javascript & typescript. tested with jest.

installation

npm i react-data-table-oc

How to use

import ReactDataTable from 'react-data-table-oc'

< ReactDataTable data={mydata} />

how to set option

const myOption = {}

< ReactDataTable data={mydata} option={myOption}/

modify entry number

by default data-table shwo 10 entries and with select 25 - 50 - 100 you can modify this with option.select

const option = {
    select : [ 5, 10 ] 
}

modify column naming

by default data-table get index of array ( or object ) for column naming. null or empty string equal no change.

// change only first and second column

const option = {
    head : [
        'first column',
        null
        'third column'
    ] 
}

Keywords

react-component

FAQs

Package last updated on 15 Aug 2023

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