Templates
FromBuilder supports templates. For connecting templates you need to set templates
property and getFormFunc
call-back function.
Example:
var templates = ["contactform", "toolbarbuttons"];
function getform(formname) {
// Request form source
var formurl = formname + ".json";
var source = $.ajax({
url: formurl,
async: false,
}).responseJSON;
return source;
}
Setting properties for FormBuilder:
<DWKitFormBuilder
...
templates={templates}
getFormFunc={getform}
/>
Setting properties for Form component:
<DWKitForm
...
templates={templates}
getFormFunc={getform}
/>
Setting properties for FormViewer:
<DWKitFormViewer
...
templates={templates}
getFormFunc={getform}
/>