phpMv  -UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
FormTrait.php File Reference

Go to the source code of this file.

Namespaces

 Ajax\semantic\html\collections\form\traits
 

Functions

 addCompoValidation (Form $compo, HtmlFormField $field)
 
 addExtraCompoValidation (Form $compo, FieldValidation $validation)
 
 _runValidationParams (Form &$compo, JsUtils $js=NULL)
 
 _compileAjaxSubmit ($ajaxSubmit, JsUtils $js=null)
 
 setLoading ()
 
 setState ($state)
 
 setAttached ($value=true)
 
 addErrorMessage ()
 
 jsState ($state)
 
 submitOn ($event, $identifierOrElement, $url, $responseElement, $parameters=NULL)
 
 submitOnClick ($identifier, $url, $responseElement, $parameters=NULL)
 
 addSubmit ($identifier, $value, $cssStyle=NULL, $url=NULL, $responseElement=NULL, $parameters=NULL)
 
 _buttonAsSubmit (BaseHtml &$button, $event, $url, $responseElement=NULL, $parameters=NULL)
 
 setSubmitParams ($url, $responseElement=NULL, $parameters=NULL)
 
 addReset ($identifier, $value, $cssStyle=NULL)
 
 onValid ($jsCode)
 Callback on each valid field. More...
 
 onSuccess ($jsCode)
 Callback if a form is all valid. More...
 
 addExtraFieldRules ($fieldname, $rules)
 
 addExtraFieldRule ($fieldname, $type, $prompt=NULL, $value=NULL)
 
 setOptional ($fieldname, $optional=true)
 
 setActionTarget (string $action, string $target)
 

Variables

trait FormTrait
 trait used in Widget and HtmlForm More...