no message
This commit is contained in:
parent
265d4cf602
commit
4e61f16996
|
@ -12,4 +12,8 @@
|
||||||
margin-bottom: 1em;
|
margin-bottom: 1em;
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.ui-steps .ui-steps-item {
|
||||||
|
min-width: 10%;
|
||||||
|
}
|
||||||
|
|
|
@ -67,7 +67,7 @@ export class DynamicFormComponent implements OnInit {
|
||||||
visibleSidebar: boolean = false;
|
visibleSidebar: boolean = false;
|
||||||
|
|
||||||
private progressbar: boolean = false;
|
private progressbar: boolean = false;
|
||||||
private currentPage: number;
|
private currentPage: number = 0;
|
||||||
|
|
||||||
private fragment: string;
|
private fragment: string;
|
||||||
constructor(private serverService: ServerService, private router: Router, private pdfService: PDFService,
|
constructor(private serverService: ServerService, private router: Router, private pdfService: PDFService,
|
||||||
|
@ -141,17 +141,17 @@ export class DynamicFormComponent implements OnInit {
|
||||||
}
|
}
|
||||||
|
|
||||||
shouldDisplaySection(section: Section): Boolean {
|
shouldDisplaySection(section: Section): Boolean {
|
||||||
return section.page == this.currentPage;
|
return (section.page - 1) == this.currentPage;
|
||||||
}
|
}
|
||||||
|
|
||||||
createPagination() {
|
createPagination() {
|
||||||
this.pages.forEach(item => {
|
this.pages.forEach(item => {
|
||||||
this.stepperItems.push({
|
this.stepperItems.push({
|
||||||
label: '',
|
label: '',
|
||||||
command: (event: any) => {
|
command: (event: any) => {
|
||||||
this.currentPage = event.index;
|
this.currentPage = event.index;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
/* scrollToElemID(elemID) {
|
/* scrollToElemID(elemID) {
|
||||||
|
|
Loading…
Reference in New Issue