Skip to content

Instantly share code, notes, and snippets.

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

Embed
What would you like to do?
<script>
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;
}
}
}
}
</script>
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.