2.1.0 • Published 6 years ago

@thevelops/tv-table v2.1.0

Weekly downloads
-
License
ISC
Repository
github
Last release
6 years ago

tv-table

A ready-to-use table component

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

How to

Example here.

Components

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.

2.1.0

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago