@vtex/react-jsonschema-table

0.0.2-beta • Public • Published

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 !

NPM JavaScript Style Guide

Install

npm install --save react-modern-library-boilerplate

Simple 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 i

Run example

npm run dev

License

MIT © Vtex

Readme

Keywords

none

Package Sidebar

Install

npm i @vtex/react-jsonschema-table

Weekly Downloads

7

Version

0.0.2-beta

License

MIT

Unpacked Size

11.5 MB

Total Files

6

Last publish

Collaborators

  • natalia_godot
  • daher
  • tiagonapoli
  • r-araripe
  • bivillar
  • rafabac
  • augusto.lazaro
  • nonsequitur
  • tergol
  • rafarubim
  • analuizamtg
  • gustavorosolem
  • igorframos
  • arthurepc
  • rogerlucena
  • kaisermann
  • jeymisson
  • marcosvcp
  • victorhmp
  • lurian
  • marcoskwkm
  • lucasecdb
  • thiagomurakami
  • vcalasans
  • jgfidelis
  • ericreis
  • andreldsa
  • diegoximenes
  • salesfelipe
  • athoscouto
  • lbebber
  • alcar
  • tlgimenes
  • arturpimentel
  • felippenardi
  • alinevillaca
  • anitavincent
  • caio.oliveira
  • victorges
  • brunojdo
  • vtexlab
  • breno
  • firstdoit
  • augustob
  • afonsopraca
  • amoreira
  • guigs
  • guilhermebruzzi
  • brunohq
  • nandoacoelho
  • kevinchevallier
  • cmdalbem
  • iago
  • ntmedina