Changeset 1026


Ignore:
Timestamp:
2009-02-04 15:13:13 (4 years ago)
Author:
mpo
Message:

adding jsdoc for the extra validationData argument passed to validators

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/kauri-forms/kauri-forms-framework/src/main/kauri/static/js/validator.js

    r1008 r1026  
    4141     *  
    4242     * @property {Object} value the value to be tested 
     43     * @property {Object} validationData extra object holding various elements useful during validation:  
     44     *   <ul><li>index: seqnr. 0 based (when in multivalue field)</li> 
     45     *   <li>type: ref to the field-type</li> 
     46     *   <li>multivalue: boolean</li></ul> 
    4347     * @property {Object} listener call-back function (signature(result_boolean, [message]) for async checks 
    4448     * @return void 
     
    4650     *             when the validation fails. 
    4751     */ 
    48     Validator.prototype.validate = function( value) { 
     52    Validator.prototype.validate = function( value, validationData) { 
    4953 
    5054        return this.notifySuccess(); 
Note: See TracChangeset for help on using the changeset viewer.