1.0.15 • Published 3 years ago

sheetsort-table v1.0.15

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

SheetSort-Table

DataTable

  • It's a React Component that take 3 type of parameters

Parameters Description:

NameTypeDescription
thDataObjectthe titles needed for the table "thead"
tdDataArrayall the datas needed for the table "tbody"
dataTitleStringthe table "h1" -> section > h1 + table

Datas Example:

thData = {
 key: string,
 ...
}
tdData = [
 {key: string}
 ...
]
dataTitle = "App title"

How to use it

import DataTable from "sheetsort-table/dist/datatable/DataTable"

const MyComponent = () => {
    const headTable = {
        firstName: "Kaseng",
        key: ""
    }

    const bodyTable = [
        {
            firstName: "Kaseng",
            key: ""
        },
        {...}
    ]

    const h1Title = "My title"

    return (
        <DataTable thData={headTable} tdData={bodyTable} dataTitle={h1Title} />
    )
}
1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago