no message
This commit is contained in:
parent
21df6ccdd1
commit
daa0853dbc
|
@ -28,3 +28,7 @@
|
||||||
.ui-steps.steps-custom .ui-steps-item .ui-steps-title {
|
.ui-steps.steps-custom .ui-steps-item .ui-steps-title {
|
||||||
color: #555555;
|
color: #555555;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.ng-sidebar {
|
||||||
|
width: 40%;
|
||||||
|
}
|
|
@ -26,7 +26,6 @@
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</ng-sidebar-container>
|
</ng-sidebar-container>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
<p-progressBar [value]="value"></p-progressBar>
|
<p-progressBar [value]="value" [style]="{'height': '30px'}"></p-progressBar>
|
||||||
|
|
|
@ -8,7 +8,7 @@ import { FormGroup, FormControl, FormArray } from '@angular/forms'
|
||||||
})
|
})
|
||||||
export class ProgressBarComponent implements OnInit {
|
export class ProgressBarComponent implements OnInit {
|
||||||
@Input() formGroup: FormGroup
|
@Input() formGroup: FormGroup
|
||||||
@Input("progressValueAccuracy") public accuracy: number = 2
|
@Input("progressValueAccuracy") public accuracy: number = 1
|
||||||
|
|
||||||
constructor(private visibilityRulesService: VisibilityRulesService) { }
|
constructor(private visibilityRulesService: VisibilityRulesService) { }
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ export class ProgressBarComponent implements OnInit {
|
||||||
var total = this.getFormControlDepthLength(this.formGroup);
|
var total = this.getFormControlDepthLength(this.formGroup);
|
||||||
var perc = (progressSoFar / total) * 100;
|
var perc = (progressSoFar / total) * 100;
|
||||||
this.value = Number.parseFloat(perc.toPrecision(this.accuracy));
|
this.value = Number.parseFloat(perc.toPrecision(this.accuracy));
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
countFormControlsWithValue(form: FormGroup): number {
|
countFormControlsWithValue(form: FormGroup): number {
|
||||||
|
|
Loading…
Reference in New Issue