Open rajnesh-rathor-auxano opened 1 year ago
Me too :) never working as sampled on AdminLTE3
I have implemented it in angular
@ViewChild('stepper1', { static: false }) stepperRef!: ElementRef;
this.stepper = new Stepper(this.stepperRef.nativeElement, {
linear: false,
animation: true,
});
const validateForm1Fields = [
'firstName',
'lastName',
'gender',
'email',
'mobileNumber',
'governmentId',
'address',
'zipCode',
'country',
'state',
'city',
];
this.renderer2.listen(this.stepperRef.nativeElement, 'show.bs-stepper', (event: any) => {
if (event.detail.from === 0) {
if (
!validateForm1Fields.every((x) => this.ngForm.controls[x].status === 'VALID')
) {
this.submitted = true;
event.preventDefault();
} else {
this.completedStep1 = true;
this.submitted = false;
}
}
});
}
`
I have tried HTML one but not able to successfully implement it in angular. could someone please