UNPKG

angular-archwizard

Version:

An Angular 9+ module containing a wizard component and its supporting components and directives

48 lines (47 loc) 1.21 kB
import { OnInit } from '@angular/core'; import { WizardStep } from '../util/wizard-step.interface'; /** * The `awCompletedStep` directive can be used to make a wizard step initially completed. * * Initially completed steps are shown as completed when the wizard is presented to the user. * * A typical use case is to make a step initially completed if it is automatically filled with some derived/predefined information. * * ### Syntax * * ```html * <aw-wizard-step awCompletedStep> * ... * </aw-wizard-step> * ``` * * An optional boolean condition can be specified: * * ```html * <aw-wizard-step [awCompletedStep]="shouldBeCompleted"> * ... * </aw-wizard-step> * ``` * * ### Example * * ```html * <aw-wizard-step stepTitle="First step" [awCompletedStep]="firstStepPrefilled"> * ... * </aw-wizard-step> * ``` */ export declare class CompletedStepDirective implements OnInit { private wizardStep; initiallyCompleted: boolean; /** * Constructor * * @param wizardStep The wizard step, which contains this [[CompletedStepDirective]] */ constructor(wizardStep: WizardStep); /** * Initialization work */ ngOnInit(): void; }