expand Validation in Model
Tinple opened this issue · 1 comments
Tinple commented
Can Validation support some filters like trim and escape ?
It would be fine like this:
{name: 'name', type: 'string', validation: 'required|length[1,20]|trim'}
Tinple commented
I find that in message demo that it can be done like this:
var input = document.getElementById('messageInput'),
inputVal = input.value.trim();
I wonder if the filters like trim
could be custom there?