@groovy.transform.CompileStatic final class FormSpec extends FormRowSpec
UiFormSpecifier.ui delegated class.
This class allow to draw a form. A form is composed of sections, field and tabs.
A form is included into a block calling BlockSpec.form.
Should help with autocompletion and static typing validation of the fields of the form that are displayed in the browser.
Constructor and description |
---|
FormSpec
(IUiFormVisitor formVisitor) Form sections relative Width |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
formAction(org.codehaus.groovy.runtime.MethodClosure action, java.lang.Long id, java.util.Map params, ButtonStyle style) form action. |
|
void |
formAction(java.lang.String i18n, java.lang.String url, ButtonStyle style) |
Methods inherited from class | Name |
---|---|
class FormRowSpec |
row, section, section |
class FormAjaxFieldSpec |
ajaxField, ajaxField, ajaxField, ajaxField, ajaxField, field, field, field, fieldFromMap, hiddenField, innerFormAction, tabs |
Form sections relative Width
form action. The form is POSTed to the target action.
i18n
- label of the buttonaction
- methodClosure pointing to the actionid
- id paramparams
- additional paramsisAjax
- if true, the action is of ajax kind (either open a modal or updating part of the page, without reloading the page)