I'm using Vue Material Chips component to collect some string arrays, and I have to limit the length of each string (let's say, 30 characters).
They have the md-limit
prop, it limits the number of strings I can have in my array but not the number of chars I can have on each string.
I do believe I'll have to build a custom validation before adding each string to the array (I've tried to use v-validate
but it doesn't seem to have any effect on the chips component).
If anybody had a suggestion how could I achieve it, it would be very appreciated! Tnx
So if I got this right
this.fruits = ['Banana','Apple','Pineapple','SomeOtherFruitWithMoreThan30Chars']
)What I would do: