- Notifications
You must be signed in to change notification settings - Fork16
Add support for validations based on ember-changeset to ember-bootstrap forms
License
ember-bootstrap/ember-bootstrap-changeset-validations
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This Ember addon adds support for validations based onember-changeset toember-bootstrap forms.This way your forms are only submitted when the underlying data is valid, otherwise the appropriate bootstrap errormarkup will be applied. See theFormElement documentation forfurther details.
- Ember Bootstrap v5 or above
- Ember Changeset and Ember Changeset Validations v4
- Ember.js v3.24 or above
- Ember CLI v3.24 or above
- Node.js v12 or above
ember install ember-bootstrap-changeset-validations
You should have installed the ember-bootstrap and ember-changeset addons already. If not install them:
ember install ember-bootstrapember install ember-changeset
You probably also want to installember-changeset-validationsif you do not have a custom validation implementation:
ember install ember-changeset-validations
Define your model and its validations as described inember-changeset-validations.Then assign the changeset based on that to your form:
<BsForm @model={{changesetthis.userthis.userValidations}} as |form|> <form.element @label="Username" @controlType="text" @property="username" /> <form.element @label="Email" @controlType="email" @property="email" /> <form.element @label="Password" @controlType="password" @property="password" /> <form.submitButton>Submit</form.submitButton></BsForm>
See theContributing guide for details.
Code and documentation copyright 2017 kaliber5 GmbH and contributors. Code released underthe MIT license.
About
Add support for validations based on ember-changeset to ember-bootstrap forms
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors7
Uh oh!
There was an error while loading.Please reload this page.