imports/vx/client/code/ux.js
/**
     * New React.js validation function for VXForm.
     *
     * @param {object} component React.js Component.
     */
New React.js validation function for VXForm.
@param {object} component React.js Component.
New React . js validation function for VXForm . @param { object } component React . js Component .
async validateComponent(component) {
        const result = await UX.validateInstance(component)
        if (!result.success) {
            return
        }
        if (component.props.siblings) {
            for (let siblingId of component.props.siblings) {
                let siblingComponent = UX.findComponentById(siblingId)
                let siblingResult = await UX.validateInstance(siblingComponent)
                if (!siblingResult.success) {
                    break
                }
            }
        }
        return
    }
async validateComponent ( component ) { const result = await UX . validateInstance ( component ) if ( ! result . success ) { return } if ( component . props . siblings ) { for ( let siblingId of component . props . siblings ) { let siblingComponent = UX . findComponentById ( siblingId ) let siblingResult = await UX . validateInstance ( siblingComponent ) if ( ! siblingResult . success ) { break } } } return }
New React.js validation function for VXForm.
New React . js validation function for VXForm .