Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ember-bootstrap/ember-bootstrap-changeset-validations
Add support for validations based on ember-changeset to ember-bootstrap forms
https://github.com/ember-bootstrap/ember-bootstrap-changeset-validations
ember ember-addon ember-bootstrap
Last synced: 5 days ago
JSON representation
Add support for validations based on ember-changeset to ember-bootstrap forms
- Host: GitHub
- URL: https://github.com/ember-bootstrap/ember-bootstrap-changeset-validations
- Owner: ember-bootstrap
- License: mit
- Created: 2016-06-22T07:25:21.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-09-06T19:21:06.000Z (2 months ago)
- Last Synced: 2024-10-28T11:08:36.396Z (9 days ago)
- Topics: ember, ember-addon, ember-bootstrap
- Language: JavaScript
- Homepage:
- Size: 1.45 MB
- Stars: 15
- Watchers: 4
- Forks: 16
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Ember-bootstrap-changeset-validations
[![Build Status](https://travis-ci.org/kaliber5/ember-bootstrap-changeset-validations.svg?branch=master)](https://travis-ci.org/kaliber5/ember-bootstrap-changeset-validations)
This Ember addon adds support for validations based on [ember-changeset](https://github.com/poteto/ember-changeset) to [ember-bootstrap](https://www.ember-bootstrap.com/) forms.
This way your forms are only submitted when the underlying data is valid, otherwise the appropriate bootstrap error
markup will be applied. See the [FormElement documentation](https://www.ember-bootstrap.com/api/classes/Components.FormElement.html) for
further 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 aboveInstallation
------------------------------------------------------------------------------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-bootstrap
ember install ember-changeset
```You probably also want to install [ember-changeset-validations](https://github.com/poteto/ember-changeset-validations/)
if you do not have a custom validation implementation:```
ember install ember-changeset-validations
```## Usage
Define your model and its validations as described in [ember-changeset-validations](https://github.com/poteto/ember-changeset-validations/).
Then assign the changeset based on that to your form:```hbs
Submit```
## Authors
* [Simon Ihmig](https://github.com/simonihmig) @ [kaliber5](http://www.kaliber5.de)
* [Jeldrik Hanschke](https://github.com/jelhan)Contributing
------------------------------------------------------------------------------See the [Contributing](CONTRIBUTING.md) guide for details.
## Copyright and license
Code and documentation copyright 2017 kaliber5 GmbH and contributors. Code released under [the MIT license](LICENSE.md).