Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add support for validations based on ember-changeset to ember-bootstrap forms

License

NotificationsYou must be signed in to change notification settings

ember-bootstrap/ember-bootstrap-changeset-validations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

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.

Compatibility

  • 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

Installation

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

Usage

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>

Authors

Contributing

See theContributing guide for details.

Copyright and license

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

Stars

Watchers

Forks

Packages

No packages published

Contributors7


[8]ページ先頭

©2009-2025 Movatter.jp