Releases: nette/forms
Releases · nette/forms
Released version 2.4.1
- added netteForms.min.js
- netteForms: forms are initialized on DOMContentLoaded instead of onload
- netteForms: fixed compatibility with IE 8
- Container::
addInteger()
is nullable - TextInput: Reverts, validators FLOAT doesn't automatically sets type to 'number'
- TextBase: added
setNullable()
- TextBase: emptyValue is removed from value in
validate()
- TextBase, TextInput, TextArea: refactoring, rendered value is built in
getRenderedValue()
- TextInput: rules are processed in
addRule()
instead ofgetControl()
(is consistent with TextBase)
For the details you can have a look at the diff.
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.
Released version 2.3.10
Released version 2.3.9
- UploadControl: added
isOK()
- Helpers::
exportRules()
skips empty branches - netteForms.js: Nette.noInit = true disables auto initialization
For the details you can have a look at the diff.
Released version 2.3.8
Released version 2.3.7
- Form: added IS_NOT_IN
- Helpers::
exportRules()
correctly exports empty arrays #102 - Rules: allow Form::VALID only in the addConditionOn #95 #101
- FormMacros: better error messages
- __toString handles Throwable errors
- netteForms.js: validator 'equal' compares values as PHP strings
For the details you can have a look at the diff.
Released version 2.2.8
- ChoiceControl, MultiChoiceControl: renamed 'range' to 'set' in exception
- ControlGroup::
add()
validation fixed; typos - netteForms.js: validator 'equal' compares values as PHP strings
- netteForms.js: fixed freeze browser on email validation nette/nette#1540
- netteForms: updated regexp for URL and email validation nette/nette#1539
- __toString handles Throwable errors
For the details you can have a look at the diff.
Released version 2.3.6
- FormMacros: added warnings Modifiers are not allowed here
- Form::$onSuccess and Container::$onValidate must be array of Traversable
- netteForms: updated regexp for URL and email validation nette/nette#1539 nette/nette#1540
For the details you can have a look at the diff.
Released version 2.2.7
- travis: migrating to container-based infrastructure
- improved coding style
- netteForms.js: fixed toggle in IE < 9
For the details you can have a look at the diff.
Released version 2.3.4
- Helpers::createSelectBox: added parameter $selected
- ChoiceControl, MultiChoiceControl: added $checkAllowedValues #28
- ChoiceControl, MultiChoiceControl: renamed 'range' to 'set' in exception
- travis: migrating to container-based infrastructure
- improved coding style
For the details you can have a look at the diff.