UNPKG

@rg-software/angular-archwizard

Version:
50 lines (49 loc) 1.83 kB
import { EventEmitter } from '@angular/core'; import { WizardComponent } from '../components/wizard.component'; import * as i0 from "@angular/core"; /** * The `awPreviousStep` directive can be used to navigate to the previous step. * Compared to the [[NextStepDirective]] it's important to note, that this directive doesn't contain a `finalize` output method. * * ### Syntax * * ```html * <button awPreviousStep>...</button> * ``` * * @author Marc Arndt */ export declare class PreviousStepDirective { private wizard; /** * This [[EventEmitter]] is called directly before the current step is exited during a transition through a component with this directive. */ preFinalize: EventEmitter<void>; /** * This [[EventEmitter]] is called directly after the current step is exited during a transition through a component with this directive. */ postFinalize: EventEmitter<void>; /** * Constructor * * @param wizard The state of the wizard */ constructor(wizard: WizardComponent); /** * A convenience field for `preFinalize` */ get finalize(): EventEmitter<void>; /** * A convenience field for `preFinalize` * * @param emitter The [[EventEmitter]] to be set */ set finalize(emitter: EventEmitter<void>); /** * Listener method for `click` events on the component with this directive. * After this method is called the wizard will try to transition to the previous step */ onClick(): void; static ɵfac: i0.ɵɵFactoryDeclaration<PreviousStepDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<PreviousStepDirective, "[awPreviousStep]", never, {}, { "preFinalize": "preFinalize"; "postFinalize": "postFinalize"; "finalize": "finalize"; }, never, never, false, never>; }