projects/prestations-ng/src/foehn-navigation/abstract-foehn-navigation.component.ts
Methods |
Inputs |
Outputs |
continueLaterAlreadyRegisteredLabel | |
Type : string
|
|
Default value : 'foehn-navigation.continue-later-already-registered.label'
|
|
continueLaterConnectedLabel | |
Type : string
|
|
Default value : 'foehn-navigation.continue-later-connected.label'
|
|
continueLaterLabel | |
Type : string
|
|
Default value : 'foehn-navigation.continue-later.label'
|
|
nextLabel | |
Type : string
|
|
Default value : 'foehn-navigation.next.label'
|
|
prevLabel | |
Type : string
|
|
Default value : 'foehn-navigation.previous.label'
|
|
showContinueLaterButton | |
Type : boolean
|
|
Default value : true
|
|
showNextButton | |
Type : boolean
|
|
Default value : true
|
|
triggerRecoveryOnPageChange | |
Type : boolean
|
|
Default value : false
|
|
onNext | |
Type : EventEmitter
|
|
onPrevious | |
Type : EventEmitter
|
|
canShowNextButton |
canShowNextButton()
|
Returns :
boolean
|
goToNext |
goToNext()
|
Returns :
void
|
goToPrevious |
goToPrevious()
|
Returns :
void
|
import { Directive, EventEmitter, Input, Output } from '@angular/core';
@Directive()
export abstract class AbstractFoehnNavigationComponent {
@Output()
// eslint-disable-next-line @angular-eslint/no-output-on-prefix
onNext = new EventEmitter<void>();
@Output()
// eslint-disable-next-line @angular-eslint/no-output-on-prefix
onPrevious = new EventEmitter<void>();
@Input()
nextLabel = 'foehn-navigation.next.label';
@Input()
prevLabel = 'foehn-navigation.previous.label';
@Input()
continueLaterLabel = 'foehn-navigation.continue-later.label';
@Input()
continueLaterAlreadyRegisteredLabel =
'foehn-navigation.continue-later-already-registered.label';
@Input()
continueLaterConnectedLabel =
'foehn-navigation.continue-later-connected.label';
@Input()
showContinueLaterButton = true;
@Input()
showNextButton = true;
@Input()
triggerRecoveryOnPageChange = false;
goToNext(): void {
this.onNext.emit();
}
goToPrevious(): void {
this.onPrevious.emit();
}
canShowNextButton(): boolean {
return this.showNextButton;
}
}