isDirty

checks whether changes were made within the form

boolean isDirty();

Returns

booleanreturns true if the data was changed

Example

if(form.isDirty()){
    if(!form.validate())
        return false;
    form.save();
};

Related samples

Details

With form, the method is used before data validation and saving it to the component and server.

See also
Back to top
If you have not checked yet, be sure to visit site of our main product Webix open source html5 framework and page of form elements product.