0.0.2-beta • Published 8 years ago
@vtex/react-jsonschema-table v0.0.2-beta
react-jsonschema-table
Simple usage react component stylesheet table with inifnite scroll for massive data consumption and line editing using JSONSchema as data structure.
Work In Progress !
Install
npm install --save react-modern-library-boilerplateSimple Usage
import React, { Component } from 'react'
import Table from 'react-jsonschema-table'
class Example extends Component {
render () {
return (
<Table />
)
}
}API
schema: Is the JSONSchema that contains the estructure and validation rules of the rendered data.
UIschema: Schema that describe some properties for UI.
indexedFields: An array with the fieldNames that can be used to sort the table.
onSort: function that is called when a sort action is required. Receive the field that trigger the action and the direction to sort.
onGetItems: function used to load the documents on demand.
Local setup for developing
Setup project
npm iRun example
npm run devLicense
MIT © Vtex
0.0.2-beta
8 years ago
0.0.1
8 years ago