-
Notifications
You must be signed in to change notification settings - Fork 3
jQuery.jBuilder.build
Nemesis9765 edited this page Jun 16, 2012
·
4 revisions
An alias of doLayout which takes the HTML string and renders to a target.
Name | Type | Description |
---|---|---|
formData | Object or Array | The JSON object which builds the form and renders in a specific place |
The JSON object which gets passed to doLayout to turn into HTML
Name | Type | Description |
---|---|---|
renderTo | String or jQuery | The target where you want the HTML to be rendered to. If not defined, it renders to document body. |
jQuery.jBuilder.build([{ type : "html", renderTo : jQuery("div"), text : "<p>This is a paragraph</p>" }]);
jQuery.jBuilder.build({ layout : 'accordion', width : 400, items : [{ label : "Panel Title", type : "html", text : "<p>This is a paragraph</p>" }] });