bootstrap-vue
Version:
BootstrapVue, with over 40 plugins and more than 80 custom components, provides one of the most comprehensive implementations of Bootstrap v4 components and grid system for Vue.js. With extensive and automated WAI-ARIA accessibility markup.
41 lines (40 loc) • 1.18 kB
JavaScript
// @vue/component
export default {
computed: {
validity: {
// Expose validity property
cache: false,
get() /* istanbul ignore next */ {
return this.$refs.input.validity
}
},
validationMessage: {
// Expose validationMessage property
cache: false,
get() /* istanbul ignore next */ {
return this.$refs.input.validationMessage
}
},
willValidate: {
// Expose willValidate property
cache: false,
get() /* istanbul ignore next */ {
return this.$refs.input.willValidate
}
}
},
methods: {
setCustomValidity() /* istanbul ignore next */ {
// For external handler that may want a setCustomValidity(...) method
return this.$refs.input.setCustomValidity(...arguments)
},
checkValidity() /* istanbul ignore next */ {
// For external handler that may want a checkValidity(...) method
return this.$refs.input.checkValidity(...arguments)
},
reportValidity() /* istanbul ignore next */ {
// For external handler that may want a reportValidity(...) method
return this.$refs.input.reportValidity(...arguments)
}
}
}