How to use the @covalent/core.StepState.None function in @covalent/core

To help you get started, we’ve selected a few @covalent/core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cyclosproject / cyclos4-ui / src / app / shared / linear-stepper-control.component.ts View on Github external
private doActivate(step: TdStepComponent) {
    // Disable all steps greater than the current step
    const steps = this.stepper.steps;
    const index = steps.indexOf(step);
    const disabled = this.disabledSteps.value;
    for (let i = 0; i < steps.length; i++) {
      const current = steps[i];
      current.disabled = disabled.has(current) || i > index;
      if (i > index) {
        current.state = StepState.None;
      } else if (i < index) {
        if (this.disabledSteps.value.has(current)) {
          current.state = StepState.None;
        } else {
          current.state = StepState.Complete;
        }
      }
    }
    step.state = StepState.None;
    step.open();
  }
}
github nhsconnect / careconnect-reference-implementation / ccri-management-app / src / main / web / src / app / modules / hie / patient-find / patient-find.component.ts View on Github external
toggleCompleteStep3(): void {
        this.stateStep3 = (this.stateStep3 === StepState.Complete ? StepState.None : StepState.Complete);
    }
github nhsconnect / careconnect-reference-implementation / ccri-management-app / src / main / web / src / app / modules / hie / patient-find / patient-find.component.ts View on Github external
toggleRequiredStep2(): void {
        this.stateStep2 = (this.stateStep2 === StepState.Required ? StepState.None : StepState.Required);
    }