-
Notifications
You must be signed in to change notification settings - Fork 357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(dynamic-forms): allow elements to be disabled via configuration #1219
Conversation
this is needed because we were mixing reactive forms with template driven forms and this usage will be deprecated in angular 7 also used the covalent control value accessor mixin
since we are injecting the control instance into the underlying element form support was never needed
adding a disabled property to disable properties on the fly without the need of accessing the underlying form
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't like the how the disabled slider looks/works. It's not grayed out, but the dot grays out when you click on it. Title should be grayed out too.
Don't like the slider toggle. Title should be grayed out and larger font to match the others.
File upload button is still active even though element is disabled.
This is for the file-input issue: #1220 [Bug]: file-input doesnt handle disabled state via reactive forms. the slide-toggle is a material issue and thats how it works. |
|
…eradata#1219) * refactor(dynamic-forms): remove ngModel usage this is needed because we were mixing reactive forms with template driven forms and this usage will be deprecated in angular 7 also used the covalent control value accessor mixin * chore(): remove AbstractControlValueAccessor code since its not needed * fix(): form support was not needed in the dynamic elements since we are injecting the control instance into the underlying element form support was never needed * feat(dynamic-forms): allow elements to be disabled via configuration adding a disabled property to disable properties on the fly without the need of accessing the underlying form * fix(): disable input in dynamic file input * fix(): fix label scss for slider
Description
adding a disabled property to disable properties on the fly without the
need of accessing the underlying form
What's included?
Test Steps
npm run serve
General Tests for Every PR
npm run serve:prod
still works.npm run tslint
passes.npm run stylelint
passes.npm test
passes and code coverage is not lower.npm run build:lib
still works.npm run build:lib
still works.Screenshots or link to StackBlitz/Plunker
closes #1126