-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: (platform) form refactoring (#3083)
* refactor platform form * move things to separate files * fix tests, add nested form-groups * proper inject flag to retrieve ngForm * fix typing in checkbox-group template * add comment * minor * rid of contentChildern * drop extra variable * minor * add step input module to platform module
- Loading branch information
1 parent
baa6510
commit 8d53c3d
Showing
30 changed files
with
708 additions
and
383 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 4 additions & 7 deletions
11
...m-forms/switch/switch-examples/switch-config-example/switch-config-example.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,7 @@ | ||
<fdp-form-group [multiLayout]="true" [formGroup]="customForm"> | ||
<fdp-form-field id="switch-config" label="Switch with Config" zone="zLeft" rank="4"> | ||
<fdp-switch | ||
name="switch-config" | ||
formControlName="switch" | ||
></fdp-switch> | ||
<fdp-form-group [multiLayout]="true" [object]="model" #fg> | ||
<fdp-form-field #ff id="switch" label="Switch with Config" zone="zLeft" rank="4"> | ||
<fdp-switch name="switch" [formControl]="ff.formControl"></fdp-switch> | ||
</fdp-form-field> | ||
</fdp-form-group> | ||
|
||
<div style="padding-left: 2rem;">form value: {{ customForm.getRawValue() | json }}</div> | ||
<div style="padding-left: 2rem;">form value: {{ fg.formGroup.getRawValue() | json }}</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.