Why donate
API Explorer
useFormChild composable

This composable refers to QForm wrapping your own custom component which you want to communicate with.

Syntax

import { useFormChild } from 'quasar'

setup () {
  // function validate () { ... }
  // function resetValidation () { ... }

  useFormChild({
    validate, // Function; Can be async;
              // Should return a Boolean (or a Promise resolving to a Boolean)
    resetValidation,    // Optional function which resets validation
    requiresQForm: true // should it error out if no parent QForm is found?
  })
}