3.4.1 • Published 2 months ago

@jsonforms/vanilla-renderers v3.4.1

Weekly downloads
814
License
MIT
Repository
github
Last release
2 months ago

JSON Forms - More Forms. Less Code

Complex forms in the blink of an eye

JSON Forms eliminates the tedious task of writing fully-featured forms by hand by leveraging the capabilities of JSON, JSON Schema and Javascript.

Vanilla Renderers Package

This is the JSONForms Vanilla Renderers Package. This package only contains renderers and must be combined with JSON Forms React.

You can combine JSON Forms React with other renderers too, for example with the Material Renderers.

See the official documentation and the JSON Forms React seed repository for examples on how to integrate JSON Forms with your application.

Check https://www.npmjs.com/search?q=%40jsonforms for all published JSONForms packages.

If you want to customize styling, have a look at our styles guide.

Quick start

Install JSON Forms Core, React and React Vanilla Renderers

npm i --save @jsonforms/core @jsonforms/react @jsonforms/vanilla-renderers

Use the JsonForms component for each form you want to render and hand over the renderer set.

import React, { useState } from 'react';
import { JsonForms } from '@jsonforms/react';
import { vanillaCells, vanillaRenderers } from '@jsonforms/vanilla-renderers';

const schema = {
  type: 'object',
  properties: {
    name: {
      type: 'string',
      minLength: 1,
    },
    done: {
      type: 'boolean',
    },
    due_date: {
      type: 'string',
      format: 'date',
    },
    recurrence: {
      type: 'string',
      enum: ['Never', 'Daily', 'Weekly', 'Monthly'],
    },
  },
  required: ['name', 'due_date'],
};
const uischema = {
  type: 'VerticalLayout',
  elements: [
    {
      type: 'Control',
      label: false,
      scope: '#/properties/done',
    },
    {
      type: 'Control',
      scope: '#/properties/name',
    },
    {
      type: 'HorizontalLayout',
      elements: [
        {
          type: 'Control',
          scope: '#/properties/due_date',
        },
        {
          type: 'Control',
          scope: '#/properties/recurrence',
        },
      ],
    },
  ],
};
const initialData = {};
function App() {
  const [data, setData] = useState(initialData);
  return (
    <JsonForms
      schema={schema}
      uischema={uischema}
      data={data}
      renderers={vanillaRenderers}
      cells={vanillaCells}
      onChange={({ data, _errors }) => setData(data)}
    />
  );
}

License

The JSON Forms project is licensed under the MIT License. See the LICENSE file for more information.

Roadmap

Our current roadmap is available here.

Feedback, Help and Support

JSON Forms is developed by EclipseSource.

If you encounter any problems feel free to open an issue on the repo. For questions and discussions please use the JSON Forms board. You can also reach us via email. In addition, EclipseSource also offers professional support for JSON Forms.

Migration

See our migration guide when updating JSON Forms.

3.4.1-beta.0

2 months ago

3.4.1

2 months ago

3.4.0-beta.0

3 months ago

3.4.0

3 months ago

3.3.0-beta.1

7 months ago

3.4.0-alpha.0

7 months ago

3.4.0-alpha.1

5 months ago

3.4.0-alpha.2

4 months ago

3.4.0-alpha.3

4 months ago

3.3.0

7 months ago

3.3.0-beta.0

8 months ago

3.3.0-alpha.1

8 months ago

3.3.0-alpha.0

9 months ago

3.2.1

11 months ago

3.2.0

11 months ago

3.2.0-beta.1

11 months ago

3.2.0-beta.0

12 months ago

3.2.0-alpha.4

1 year ago

3.1.1-alpha.0

1 year ago

3.2.0-alpha.0

1 year ago

3.2.0-alpha.1

1 year ago

3.2.0-alpha.2

1 year ago

3.2.0-alpha.3

1 year ago

3.1.0

2 years ago

3.1.0-beta.1

2 years ago

3.1.0-beta.0

2 years ago

3.1.0-alpha.2

2 years ago

3.1.0-alpha.3

2 years ago

3.1.0-alpha.1

2 years ago

3.1.0-alpha.0

2 years ago

3.0.0

2 years ago

3.0.0-rc.1

2 years ago

3.0.0-beta.5

2 years ago

3.0.0-beta.4

3 years ago

3.0.0-rc.0

2 years ago

3.0.0-beta.3

3 years ago

3.0.0-beta.2

3 years ago

3.0.0-beta.1

3 years ago

3.0.0-alpha.3

3 years ago

3.0.0-beta.0

3 years ago

3.0.0-alpha.2

3 years ago

3.0.0-alpha.1

3 years ago

3.0.0-alpha.0

3 years ago

2.5.2

4 years ago

2.5.1-beta.0

4 years ago

2.5.1-beta.1

4 years ago

2.5.2-alpha.0

4 years ago

2.5.1

4 years ago

2.5.1-alpha.0

4 years ago

2.5.1-alpha.1

4 years ago

2.5.0-beta.1

4 years ago

2.5.0

4 years ago

2.5.0-beta.0

4 years ago

2.5.0-alpha.1

4 years ago

2.5.0-alpha.0

4 years ago

2.4.1

4 years ago

2.4.1-beta.2

4 years ago

2.4.1-beta.1

4 years ago

2.4.1-beta.0

4 years ago

2.4.1-alpha.3

4 years ago

2.4.1-alpha.2

4 years ago

2.4.1-alpha.1

4 years ago

2.4.1-alpha.0

5 years ago

2.4.0

5 years ago

2.4.0-beta.0

5 years ago

2.4.0-alpha.3

5 years ago

2.4.0-alpha.2

5 years ago

2.4.0-alpha.1

5 years ago

2.4.0-alpha.0

5 years ago

2.3.2

5 years ago

2.3.2-beta.0

5 years ago

2.3.2-alpha.0

5 years ago

2.3.1

5 years ago

2.3.1-beta.0

5 years ago

2.3.1-alpha.0

5 years ago

2.3.0

5 years ago

2.3.0-beta.0

5 years ago

2.3.0-alpha.1

5 years ago

2.3.0-alpha.0

6 years ago

2.2.3

6 years ago

2.2.3-beta.1

6 years ago

2.2.3-beta.0

6 years ago

2.2.3-alpha.2

6 years ago

2.2.3-alpha.1

6 years ago

2.2.3-alpha.0

6 years ago

2.2.2

6 years ago

2.2.2-beta.1

6 years ago

2.2.2-beta.0

6 years ago

2.2.2-alpha.0

6 years ago

2.2.1

6 years ago

2.2.1-alpha.4

6 years ago

2.2.1-alpha.3

6 years ago

2.2.1-alpha.2

6 years ago

2.2.1-alpha.1

6 years ago

2.2.1-alpha.0

6 years ago

2.2.0

6 years ago

2.1.1-beta.0

6 years ago

2.1.1-alpha.4

6 years ago

2.1.1-alpha.3

6 years ago

2.1.1-alpha.2

6 years ago

2.1.1-alpha.1

6 years ago

2.1.1-alpha.0

6 years ago

2.1.0

6 years ago

2.1.0-rc.0

6 years ago

2.0.12

6 years ago

2.0.12-rc.4

6 years ago

2.0.12-rc.3

6 years ago

2.0.12-rc.2

6 years ago

2.0.12-rc.1

6 years ago

2.0.12-rc.0

6 years ago

2.0.8

6 years ago

2.0.7

6 years ago

2.0.7-rc.0

6 years ago

2.0.6

6 years ago

2.0.6-rc.2

6 years ago

2.0.6-rc.1

6 years ago

2.0.6-rc.0

6 years ago

2.0.5

6 years ago

2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

2.0.0-rc.4

7 years ago

2.0.0-rc.3

7 years ago

2.0.0-rc.2

7 years ago

2.0.0-rc.1

7 years ago

2.0.0-rc.0

7 years ago

2.0.0-beta.6

7 years ago

2.0.0-beta.5

7 years ago

2.0.0-beta.4

7 years ago

2.0.0-beta.3

7 years ago

2.0.0-beta.2

7 years ago

2.0.0-beta.1

7 years ago