Skip to content

Instantly share code, notes, and snippets.

@uno-de-piera uno-de-piera/validator.vue Secret
Created May 28, 2018

What would you like to do?
export default {
props: {
title: {
type: String,
required: true,
validator: title => {
if( title.length > 30 ) {
console.warn('No puedes crear un título tan largo para un Widget!!!');
return false;
return true;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.