UI components for tableschema
Last updated a year ago by roll .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install tableschema-ui 
SYNC missed versions from official npm registry.


Travis Coveralls

A web UI for creating, editing and validating Table Schemas.


  • render - framework-agnostic component render
  • List of components:
    • EditorSchema - table schema editor widget

Getting Started

You could use this components in plain JavaScript code or mixing with any modern framework (with native support for React). To render EditorSchema you have use tableschemaUI.render(tableschemaUI.<Component>, props, element) function.

First add bootstrap styles and scripts:

<!-- Styles -->
<link rel="stylesheet" href="" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">

<!-- Scripts -->
<script src="//" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>



Install the package in your terminal $ npm install --save tableschema-ui

The package could be used as tableschema-ui package from NPM:

const tableschemaUI = require('tableschema-ui')

const props = '<YOUR-PROPS>'
const element = document.getElementById('component')
tableschemaUI.render(tableschemaUI.Component, {...props}, element)


The package could be used as pluggable script from CDN:

<div id="component"></div>
<script src="//"></script>
  var props = '<YOUR-PROPS>'
  var element = document.getElementById('component')
  tableschemaUI.render(tableschemaUI.Component, {...props}, element)



You could use presented components as native React component (import from tableschema-ui/lib to get native React support):

const React = require('react')
const ReactDOM = require('react-dom')
const tableschemaUI = require('tableschema-ui/lib')

const props = '<YOUR-PROPS>'
const element = document.getElementById('component')
ReactDOM.render(<tableschemaUI.Component ...props />, element)


The package's components could be used as angular component:

const {Component, Input} = require('@angular/core')
const tableschemaUI = require('tableschema-ui')

  selector: 'component',
  template: '<div id="component"></div>'
class Report {
  @Input() <YOUR_PROPS>: any;
  ngAfterViewInit() {
    const element = document.getElementById('component')
    tableschemaUI.render(tableschemaUI.Component, {...this.props}, element)


The package's components could be used as vue component:

const tableschemaUI = require('tableschema-ui')

const Report = {
  props: [<YOUR_PROPS>],
  template: '<div id="component"></div>',
  mounted() {
    const element = document.getElementById('component')
    tableschemaUI.render(tableschemaUI.Report, {...this.props}, element)


The whole public API of this package is described here and follows semantic versioning rules. Everything outside of this readme are private API and could be changed without any notification on any new version.


To render one of the provided component render function should be used. Let's see on the basic usage example:

// Render
const props = {key: value}
const element = document.getElementById('component')
const component = tableschemaUI.render(tableschemaUI.Component, {...props}, element)

// Dispose

render(component, props, element)

  • component (Component) - it could be one of provided by the library component
  • props (Object) - object containing props
  • element (Element) - DOM element to render into
  • returns controls (Object) - controls object containing:
    • dispose (() => {}) - function to remove the component from the DOM


This component provides a simple Table Schema editor. Let's see on the basic usage example:

// Render
const props = {
    source: '',
    schema: '{"fields": []}',
    onSave: (schema, error) => {
const element = document.getElementById('schema-editor')
const component = tableschemaUI.render(tableschemaUI.EditorSchema, {...props}, element)

If data source is provided and data schema is not provided than it will be inferred from the data. The component support various options to provide the source/schema including URL and File object.

<EditorSchema {source, schema, onSave, disablePreview}/>

  • source (URL/File/Array[]) - data source
  • schema (URL/File/String/Object) - data schema
  • onSave ((schema, error) => {}) - callback will be executed on the save button click
  • disablePreview (Boolean) - if true the preview tab will not be shown


The project follows the Open Knowledge International coding standards. There are common commands to work with the project:

$ npm run dev
$ npm run build
$ npm run test

Statefull components use redux combined with immer (see src/store.js). Instead of classical initialState/actionCreators/reducers there are:

  • initial - initial store state
  • handlers - callbacks available in components to dispatch actions
  • mutations - immer based state reducers. The same as redux reducers but it allows us to change state in-place preserving immutability on the system level (see redux-box)
  • processor - a mutation which is called after every state change


Here described only breaking and the most important changes. The full changelog and documentation for all released versions could be found in nicely formatted commit history.


Initial functional version.

Current Tags

  • 0.2.1                                ...           latest (a year ago)

19 Versions

  • 0.2.1                                ...           a year ago
  • 0.2.0                                ...           a year ago
  • 0.1.17                                ...           a year ago
  • 0.1.16                                ...           a year ago
  • 0.1.15                                ...           a year ago
  • 0.1.14                                ...           a year ago
  • 0.1.13                                ...           a year ago
  • 0.1.12                                ...           a year ago
  • 0.1.11                                ...           a year ago
  • 0.1.10                                ...           a year ago
  • 0.1.9                                ...           a year ago
  • 0.1.8                                ...           a year ago
  • 0.1.6                                ...           a year ago
  • 0.1.5                                ...           a year ago
  • 0.1.4                                ...           a year ago
  • 0.1.3                                ...           a year ago
  • 0.1.2                                ...           a year ago
  • 0.1.1                                ...           a year ago
  • 0.1.0                                ...           a year ago
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 19
Dependencies (11)
Dev Dependencies (38)
Dependents (0)

Copyright 2014 - 2016 © |