Skip to content

GuidanceWrapper

Daniel Torren Peraire edited this page Aug 20, 2020 · 1 revision

Guidance Wrapper

Component used to manage the creation and display of correct guidance modals of a given branch.

Usage

A non interactive component. Created by the guidanceSystem.

API Reference

Props

  • guidanceInput - Array, one of the branch_data arrays from guidance_branch_list.

Events

  • Reacts to several events on the guidance bus: prev-guidance,next-guidance. These determine whether which buttons to include in the guidanceModal depending on the position of the guidanceModal object within the branch_data array.

Data

  • indexModal:0 used to keep track of the index within the branch_data array
  • currentPrevButton:false current state of the previous button used to input into the guidanceModal
  • currentNextButton:truecurrent state of the next button used to input into the guidanceModal

Computed

  • progressCount returns a string with the progression through branch_data array
  • returnGuidanceItem returns the correct information(object) from branch_data based off indexModal.
Clone this wiki locally