1.0.3 • Published 9 months ago

valclmb-react-table v1.0.3

Weekly downloads
-
License
-
Repository
-
Last release
9 months ago

valclmb-react-table

Installation

npm install valclmb-react-table

Basic usage

import {Table} from "valclmb-react-table"

<Table fields={fields} datas={datas}/>

Props

NameDescriptionFormatExemple
columnsColumns of the table{label: string, param: string}[][{label: "First Name", param: "firstName"}, {label: "Last Name", param:"lastName"}]
datasDatas of the table, display datas according to the param from the columns object{"param":"value"}[][{firstName: "John", lastName: "Doe"}, {firstName: "Bob", lastName:"Turner"}]
rangerange for the page length selection. default : [10, 25, 50, 100]number[][5,10,15,20,25,40]