- 
                Notifications
    You must be signed in to change notification settings 
- Fork 46
Development Archive
        insin edited this page Nov 20, 2014 
        ·
        6 revisions
      
    - Changes to onChange & active validation
- ☑ Rename onStateChangetoonChange- ☑ Detect onStateChange, reassign toonChangeand warn of deprecation in 0.9 dev version
 
- ☑ Detect 
- ☑ Passing onChangenow implies `validation: 'auto'- ☑ Check for both being passed and warn that it's not necessary in 0.9 dev version
 
- ☑ Always hook up an onChangehandler to widgets to keepform.dataup to date with user input, even if it's not being validated
 
- ☑ Rename 
- ☑ Use form.validate()as a means of forcing a full clean with the form's current data (always populated by onChange)
- FormSet & FormSet-related changes
- ☑ Add formset.validate([form])
- ☑ Add formset.addError(error)for adding cross-form errors externally
- ☑ Add formset.deleteForm(index)
- ☑ Add form.notEmpty()- ☑ Cache the result of hasChanged()each time it's executed
- Indicates that emptyPermittedno longer applies - use for highlighting required fields in extra forms in FormSets once the user has made a change.
 
- ☑ Cache the result of 
- ☑ Make addAnother()anddeleteForm()call back to re-render whenonChange()is available
 
- ☑ Add 
- ☑ Allow cross-form validation method to specify which fields it uses (to avoid calling it when possible)
- 
API: clean: ['field1', 'field2', function() { ... }]
- 
☑ Detect this in DeclarativeFieldsMetaand transform to equivalent of:var clean = function() { ... } clean.fields = {'field1': true, 'field2': true} 
 
- 
- Use React 0.12
- ☑ Add a localesmodule for adding/getting locales and setting a default.
- ☑ Change the formatsmodule to uselocales, adding agetFormat()function to get input/output formats by locale.
- ☑ Add support for partial cleaning/validation
- ☑ Add a controlled(default:false) option to Forms to enable use of controlled input components- ☑ Add a prefixed(default:false) option tosetData()andupdateData(), as the user shouldn't be forced to pass prefixed field names in order to programatically update controlled fields.
 
- ☑ Add a 
- ☑ Add interactive onChange validation - whole form or per-field
- ☑ Allow registration of multiple event handlers
- ☑ 'auto'validation adds delayedonChangean instantonBlurvalidation to text fields, so the user also gets feedback when leaving a required field if they didn't change anything.
 
- ☑ Add API for updating form.datawithout triggering validation, for controlled components- ☑ validate(default:true) andclearErrors(default:true) options toupdateData()
- ☑ validate(default:true) option tosetData()
 
- ☑ 
- ☑ Get FormSets working with 0.6 features
- ☑ Pass kwargs through to form.setData()
- ☑ validate(default:true) option tosetData()
 
- ☑ Pass kwargs through to 
- ☑ Rename isBoundtoisInitialRender- more explicit about what it's actually used for.
- ☑ Migrate from DOMBuilder to React
- ☑ Generate React.DOMcomponents
- ☑ Manual validation, no changes needed to cleaning/validation process
- ☑ Build data object from the DOM using formData()
- ☑ Make FormSet API more suitable for the client side