🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@thevelops/tv-table

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@thevelops/tv-table

A React table component

latest
Source
npmnpm
Version
2.1.0
Version published
Maintainers
2
Created
Source

tv-table

A ready-to-use table component

// install
npm i -S @thevelops/tv-table

How to

Example here.

Components

  • Table
  • Table Row

Docs

Table

import Table from "@thevelops/tv-table/dist/Table";
@import "path/to/node_modules/@thevelops/tv-table/dist/Table/style";
FieldTypeDescription
headItemsarray(required) array of head items
headOptionsarrayarray of head options
classNamestring
withCheckBoxbooldefault: false

Head Items

FieldTypeDescription
idstring(required)
labelstring or object
onClickfunc

Head Options

FieldTypeDescription
classNamestring
onChangefunconChange method for the check box. Required when withCheckBox is true.
checkedboolchecked state for the check box. Required when withCheckBox is true.

Table Row

import TableRow from "@thevelops/tv-table/dist/TableRow";
@import "path/to/node_modules/@thevelops/tv-table/dist/TableRow/style";
FieldTypeDescription
idstring(required)
dataarray(required)
classNamestring
onClickfunc
checkboxOptionsobjectrequired when withCheckBox is true

chekboxOptions

FieldTypeDescription
checkedboolrequired
onChangefuncrequired

Development

For delevepment checkout this section.

FAQs

Package last updated on 03 Oct 2018

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