Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/0xadada/ember-contextual-components-changesets
just a sandbox for playing with ember-changeset
https://github.com/0xadada/ember-contextual-components-changesets
Last synced: 2 days ago
JSON representation
just a sandbox for playing with ember-changeset
- Host: GitHub
- URL: https://github.com/0xadada/ember-contextual-components-changesets
- Owner: 0xadada
- Created: 2018-02-28T14:33:32.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-04-25T01:42:09.000Z (over 6 years ago)
- Last Synced: 2024-10-18T08:24:56.117Z (26 days ago)
- Language: JavaScript
- Homepage:
- Size: 23.4 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ember-contextual-components-changeset
A sandbox for experimenting with contextual components and `ember-changeset`.
Switch between git branches to view differing implementations.
## branch: master
[master](https://github.com/0xadada/ember-contextual-components-changeset/tree/master) branch contains
a repo doing default all-in-one validation that occurs when any changes are made
to any field. In this case, the changeset is invalid
but only shows errors for fields that haven't been touched (`isPristine`).## incremental-validation
The [incremental
validation](https://github.com/0xadada/ember-contextual-components-changeset/tree/incremental-validation)
branch uses a custom validator function to only validate the currently-focused
field upon `onBlur` event. This allows for progressive disclosure of validation
errors.## incremental-validation-sub-component
The [incremental-validation-sub-component](https://github.com/0xadada/ember-contextual-components-changeset/tree/incremental-validation-sub-component)
refactors the date picker into another component that only yields valid dates to
its consumer.