File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff 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" })
4243var BrutusinForms = brutusin[" json-forms" ];
4344var 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
4748var container = document .getElementById (' container' );
4849bf .render (container, data);
You can’t perform that action at this time.
0 commit comments