diff --git a/README.md b/README.md index ec5f938..adbd6b3 100644 --- a/README.md +++ b/README.md @@ -37,12 +37,13 @@ Optionally, include the bootstrap extension (requires bootstrap): ```html ``` -Create the javascript `BrutusinForms` instance, being `schema` a javascript `object` representing the schema structure: +Create the javascript `BrutusinForms` instance, `schema` being a javascript `object` representing the schema structure: ```javascript +var schema = new Object({"type": "boolean"}) var BrutusinForms = brutusin["json-forms"]; var bf = BrutusinForms.create(schema); ``` -And finally, render the form inside a container, with optional JSON initial `data` preloaded: +And finally render the form inside a container with optional preloaded JSON initial data, `data`: ```javascript var container = document.getElementById('container'); bf.render(container, data);