Released version 2.4.0
- requires PHP 5.6
- support for true optional controls via setRequired(FALSE) (BC break)
- checks for missing
setRequired(TRUE | FALSE)
- Container: added
addEmail()
&addInteger()
- Form: added
isMethod()
,beforeRender()
&fireRenderEvents()
and event$onRender
- negative rules like ~$form::ABCD are deprecated. (Negatives for FILLED & EQUAL are BLANK & NOT_EQUAL)
- controls: getOption('type') for distinguishing between them
- TextInput: validators EMAIL, URL, INTEGER and
FLOATautomatically sets type to 'email', 'url' or 'number' (BC break) - SelectBox, MultiSelectBox: added
addOptionAttributes()
- SelectBox: added
isOk()
- UploadControl: when file is uploaded with error, automatically shows error and
isFilled()
returns TRUE (BC break) - UploadControl: added
isOK()
- CheckboxList: added containerPrototype #92
- DefaultFormRenderer: adds class 'text' to input types 'email' and 'number' (for back compatibility after 72127b1)
- DefaultFormRenderer: wrapper for hidden fields changed from
<div>
to none Form::addProtection()
is always the first item- added BaseControl::
enableAutoOptionalMode()
- uses Nette\SmartObject & StaticClass
netteForms.js:
- ability to show all error messages at once via Nette.
showFormErrors()
#65 - displays all errors at once #65
- removed support for IE =< 7
- toggle handlers are added on body, uses addEventListener or attachEvent
Latte:
{label}
is AUTO_EMPTY<tag n:name>
always usesgetControlPart()
andgetLabelPart()
, removed method_exists checking (BC break)- local $_form replaced with global $this->global->formsCurrent so it is not needed to pass $_form to included templates
For the details you can have a look at the diff.