Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show checkmark on step complete on nested wizard #362

Open
vcarrin1 opened this issue Dec 16, 2021 · 0 comments
Open

Show checkmark on step complete on nested wizard #362

vcarrin1 opened this issue Dec 16, 2021 · 0 comments

Comments

@vcarrin1
Copy link

vcarrin1 commented Dec 16, 2021

The code below works on the parent wizard, but doesn't trigger on the nested wizard. The parent wizard has steps that each load a component, then that component contains another wizard with its own steps. I want to mark the steps as completed with a checkmark.

<ng-template awWizardStepTitle let-wizardStep="wizardStep">
     <div>Title</div>
     <span *ngIf="wizardStep.completed" class="fa fa-check pl-2" [style.color]="'#393'" size="lg"></span>
</ng-template>
// parent wizard
<aw-wizard #parentWizard navBarLocation="left" navBarLayout="large-empty-symbols" [awNavigationMode] 
       navigateForward="deny" navigateBackward="allow">
      <aw-wizard-step>
        <ng-template awWizardStepTitle>
          <div>Pipeline Type</div>
        </ng-template>
        <child-component></child-component>
      </aw-wizard-step>
</aw-wizard>

// child component / nested wizard (this doesn't work)
<aw-wizard #wizard navBarLayout="small" navBarLocation="" [disableNavigationBar]="true" class="wizard-container ver">
   <aw-wizard-step stepTitle="Details 1" [navigationSymbol]="{ symbol: '1' }">
      <ng-template awWizardStepTitle let-wizardStep="wizardStep">
         <span *ngIf="wizardStep.completed" class="fa fa-check pl-2" [style.color]="'#393'" size="lg"></span>
      </ng-template>
      <!-- content here -->
  </aw-wizard-step>
  <aw-wizard-step stepTitle="Details 2" [navigationSymbol]="{ symbol: '2' }">
      <ng-template awWizardStepTitle let-wizardStep="wizardStep">
         <span *ngIf="wizardStep.completed" class="fa fa-check pl-2" [style.color]="'#393'" size="lg"></span>
      </ng-template>
      <!-- content here -->
  </aw-wizard-step>
</aw-wizard>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant