hide y2 axis definition instead of removing it
Using ngIf has the undesired side effect that the values are lost when the input fields are not shown.
This commit is contained in:
@@ -46,7 +46,7 @@
|
|||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
<pdb-y-axis-definition #y1AxisDefinitionComponent yIndex="1"></pdb-y-axis-definition>
|
<pdb-y-axis-definition #y1AxisDefinitionComponent yIndex="1"></pdb-y-axis-definition>
|
||||||
<pdb-y-axis-definition #y2AxisDefinitionComponent yIndex="2" *ngIf="y2AxisAvailable"></pdb-y-axis-definition>
|
<pdb-y-axis-definition #y2AxisDefinitionComponent yIndex="2" [hidden]="!y2AxisAvailable"></pdb-y-axis-definition>
|
||||||
|
|
||||||
<mat-checkbox [(ngModel)]="enableGallery">Gallery</mat-checkbox>
|
<mat-checkbox [(ngModel)]="enableGallery">Gallery</mat-checkbox>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user