Skip to content

Add support for pattern validation#606

Merged
fzaninotto merged 1 commit intomasterfrom
wq
Aug 23, 2015
Merged

Add support for pattern validation#606
fzaninotto merged 1 commit intomasterfrom
wq

Conversation

@fzaninotto
Copy link
Copy Markdown
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
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

Successfully merging this pull request may close these issues.

1 participant