Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

expand Validation in Model #93

Open
Tinple opened this issue May 11, 2014 · 1 comment
Open

expand Validation in Model #93

Tinple opened this issue May 11, 2014 · 1 comment

Comments

@Tinple
Copy link

Tinple commented May 11, 2014

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 Tinple changed the title Model expand Validation in Model May 11, 2014
@Tinple
Copy link
Author

Tinple commented May 11, 2014

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant