SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
DataFormView
Constructor Summary | |
DataFormView(dataForm, formId, template)
Creates dynamic forms based on a DataForm element. |
Method Summary | |
|
bindToForm()
Bind to a form that exists within the document and has this.formId. |
|
cancelClicked()
undocumented |
DataForm
|
getDataForm()
Returns an instance of the dataForm being bound to. |
|
getRenderedNode()
|
|
onRender(parentNode)
Renders the form and appends it to parentNode |
Element
|
renderAndReturn()
Returns an HTML element (dom) that is the result of the rendered node bound with the data form. |
|
resetClicked()
undocumented |
|
submitClicked()
The handler for when the submit button is clicked. |
Constructor Detail |
DataFormView(dataForm, formId, template)
DataForm dataForm
- The dataform to bind to
String formId
- The ID for this form (unique in the document)
String template
- Optional. The path to an HTML or XSL sheet to represent the form.
Method Detail |
bindToForm()
cancelClicked()
DataForm getDataForm()
DataForm
getRenderedNode()
onRender(parentNode)
Element parentNode
- The element to append the form to.
Element renderAndReturn()
Element
resetClicked()
submitClicked()