Skip to content
New issue

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

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

Already on GitHub? # to your account

Add support for pattern validation #606

Merged
merged 1 commit into from
Aug 23, 2015
Merged

Add support for pattern validation #606

merged 1 commit into from
Aug 23, 2015

Conversation

fzaninotto
Copy link
Member

user.creationView().fields([
    nga.field('name')
        .validation({ required: true, minlength: 3, maxlength: 100 }),
    nga.field('username')
        .attributes({ placeholder: 'No space allowed, 5 chars min' })
        .validation({ required: true, pattern: '[A-Za-z0-9\.\-_]{5,20}' }),
])

fzaninotto added a commit that referenced this pull request Aug 23, 2015
Add support for pattern validation
@fzaninotto fzaninotto merged commit 316fcf6 into master Aug 23, 2015
@fzaninotto fzaninotto deleted the wq branch August 23, 2015 20:39
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant