-
-
Save uno-de-piera/9f73223bbe6b1e538a72792caf53ab6f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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