imports/vx/client/code/ux.js
/**
     * Given a binding, prepare and return an arguments array in proper
     * order for calling the validation function.
     *
     * @param {object} component Component.
     * @returns {array} Arguments array for validation function.
     */
Given a binding, prepare and return an arguments array in proper
order for calling the validation function.

@param {object} component Component.
@returns {array} Arguments array for validation function.
Given a binding prepare and return an arguments array in proper order for calling the validation function . @param { object } component Component . @returns { array } Arguments array for validation function .
prepareValidateArgs(component) {
        let validateArgs = []
        validateArgs.push(component.getValue())
        if (component.props.extra) {
            _.each(component.props.extra, (extraId) => {
                let extraComponent = UX.findComponentById(extraId)
                let value = extraComponent.getValue()
                validateArgs.push(value)
            })
        }
        let supplementalValues = UX.getSupplementalValues(component)
        validateArgs = validateArgs.concat(supplementalValues)
        return validateArgs
    }
prepareValidateArgs ( component ) { let validateArgs = [ ] validateArgs . push ( component . getValue ( ) ) if ( component . props . extra ) { _ . each ( component . props . extra , ( extraId ) => { let extraComponent = UX . findComponentById ( extraId ) let value = extraComponent . getValue ( ) validateArgs . push ( value ) } ) } let supplementalValues = UX . getSupplementalValues ( component ) validateArgs = validateArgs . concat ( supplementalValues ) return validateArgs }
Given a binding, prepare and return an arguments array in proper
 order for calling the validation function.
Given a binding prepare and return an arguments array in proper order for calling the validation function .
// Prepare array of validation inputs: // Get primary value first: // Format any extra components: // Append supplemental values to validateArgs array: