/** * Indicates if the form is sent to the server. * * @var {Boolean} */busy/** * Determine if change busy status after successful submit. * * @var {Boolean} */keepBusy/** * Indicates if the response form the server was successful. * * @var {Boolean} */successful/** * Contains the validation errors from the server. * * @var {Errors} */errors/** * Create a new form instance. * * @param {Object} data * @param {Object} axios */constructor(data={},axios=null)/** * Submit the from via a POST|PATCH|PUT|DELETE|GET request. * * @param {String} url * @return {Promise} */post|patch|put|delete|get(url)/** * Clear the form errors. */clear()/** * Reset the form fields. */reset()
Errors
/** * Get all the errors. * * @return {Object} */all()/** * Determine if there is an error for the given field. * * @param {String} field * @return {Boolean} */has(field)/** * Determine if there are any errors for the given fields. * * @param {...String} fields * @return {Boolean} */hasAny(...fields)/** * Determine if there are any errors. * * @return {Boolean} */any()/** * Get the first error message for the given field. * * @param String} field * @return {String|undefined} */get(field)/** * Get all the error messages for the given field. * * @param {String} field * @return {Array} */getAll(field)/** * Get the error message for the given fields. * * @param {...String} fields * @return {Array} */only(...fields)/** * Get all the errors in a flat array. * * @return {Array} */flatten()/** * Clear one or all error fields. * * @param {String|undefined} field */clear(field)/** * Set the errors object. * * @param {Object} */set(errors)
<alert-error:form="form" message="There were some problems with your input.">alert-error>
alert-errors
Show a danger alert with the list of errors for each field.
">
<alert-errors:form="form" message="There were some problems with your input.">alert-errors>
alert-success
Show a success alert on a successful request.
Your changes have been saved!">
<alert-success:form="form" message="Your changes have been saved!">alert-success><alert-success:form="form">Your changes have been saved!alert-success>
Changelog
Please see CHANGELOG for more information what has changed recently.
Blitzar Generate Vue Forms and Data-tables fast with a simple JSON-like syntax β‘οΈ npm i blitzar Documentation Vue 3 blitzar.cycraft.co Vue 2 blitzar0.
?? Vue Described-Data Form A fresh way to create simple or complex forms β without programming! ?? Demo Try it yourself in a Live Demo! ?? About vue-d
A set of Vue components to rapidly build forms with Tailwind CSS v2.0. It supports validation, model binding, includes default vendor styling and is fully customizable!
ncform δΈζη ncform, a nice form development way that generates form UIs and their interactions with just configuration. Comes with standard components