Instantly share code, notes, and snippets.

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