0.1.1 • Published 8 years ago

ember-json-schema-views v0.1.1

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

ember-json-schema-views

This addon extends aptible/ember-json-schema-document with basic JSON Schema-driven form components.

The following JSON Schema property types are supported:

  • boolean using schema-field-radio or schema-field-toggle
  • enum using schema-field-select
  • text using schema-field-text

Schema properties can be recursed using the each-property component.

Example: Generating a Schema-driven form by recursing Schema properties

The following template will iterate a schema's properties and build UI components that are bound to corresponding document values;

var schema = new Schema(jsonBlob);
var document = schema.buildDocument();
var properties = schema.properties();
{{#each-property properties=properties as |key property type|}}
  <label>{{property.displayProperties.title}}</label>
  {{component (concat 'schema-field-' type) key=key property=property document=location}}
{{/each-property}}

Installation

  • git clone this repository
  • npm install
  • bower install

Running

Running Tests

  • ember test
  • ember test --server

Building

  • ember build

For more information on using ember-cli, visit http://www.ember-cli.com/.

0.1.1

8 years ago

0.1.0

8 years ago

0.0.23

9 years ago

0.0.22

9 years ago

0.0.21

9 years ago

0.0.20

9 years ago

0.0.19

9 years ago

0.0.18

9 years ago

0.0.17

9 years ago

0.0.16

9 years ago

0.0.15

9 years ago

0.0.14

9 years ago

0.0.13

9 years ago

0.0.12

9 years ago

0.0.11

10 years ago

0.0.10

10 years ago

0.0.9

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago