angular-archwizard
Version:
An Angular 9+ module containing a wizard component and its supporting components and directives
47 lines (46 loc) • 1.5 kB
TypeScript
import { EventEmitter } from '@angular/core';
import { WizardComponent } from '../components/wizard.component';
/**
* 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;
}