Skip to content

Commit 55c0bbb

Browse files
authored
Merge pull request #47 from zamicol/master
Add "schema" var to the example for clarity.
2 parents e1ef1ad + 91742f3 commit 55c0bbb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,13 @@ Optionally, include the bootstrap extension (requires bootstrap):
3737
```html
3838
<script src="dist/js/brutusin-json-forms-bootstrap.min.js"></script>
3939
```
40-
Create the javascript `BrutusinForms` instance, being `schema` a javascript `object` representing the schema structure:
40+
Create the javascript `BrutusinForms` instance, `schema` being a javascript `object` representing the schema structure:
4141
```javascript
42+
var schema = new Object({"type": "boolean"})
4243
var BrutusinForms = brutusin["json-forms"];
4344
var bf = BrutusinForms.create(schema);
4445
```
45-
And finally, render the form inside a container, with optional JSON initial `data` preloaded:
46+
And finally render the form inside a container with optional preloaded JSON initial data, `data`:
4647
```javascript
4748
var container = document.getElementById('container');
4849
bf.render(container, data);

0 commit comments

Comments
 (0)