-
Notifications
You must be signed in to change notification settings - Fork 26
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
fix(geo): Layer color picker do not change the fill/stroke color #1509
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -14,6 +14,7 @@ <h2 mat-dialog-title class="mat-typography"> | |||||||||
</span> | ||||||||||
<igo-color-picker-form-field | ||||||||||
formControlName="fill" | ||||||||||
(colorChange)="setLayerFillColor($event)" | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On pourrait avoir les changements de valeurs ainsi dans le Typescript de la composante:
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Il faut cliquer sur Appliquer/OK pour récupérer la couleur There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Vraiment plus convivial pour choisir une couleur, surtout si des superpositions/conflits visuel de couleur sont possible. |
||||||||||
></igo-color-picker-form-field> | ||||||||||
</div> | ||||||||||
|
||||||||||
|
@@ -25,6 +26,7 @@ <h2 mat-dialog-title class="mat-typography"> | |||||||||
</span> | ||||||||||
<igo-color-picker-form-field | ||||||||||
formControlName="stroke" | ||||||||||
(colorChange)="setLayerStrokeColor($event)" | ||||||||||
></igo-color-picker-form-field> | ||||||||||
</div> | ||||||||||
</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.
Cette composante est une variant d'un FormField elle fonctionne avec le ReactiveForm d'Angular. Lorsqu'on lui passe un FormControl, on peut s'abonner au changement au niveau du FormControl. Voir l'exemple dans le prochain commentaire
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.
Oui sauf que dans ce cas la, pour setter le form, il faut cliquer sur ok ou appliquer, donc le changement n'est pas dynamique.