From 73def2a27aecea93a1bdd2b11b1fd67d7c2fa274 Mon Sep 17 00:00:00 2001 From: madoar Date: Fri, 8 Mar 2019 14:55:35 +0100 Subject: [PATCH] Apply the [stepId] field from the WizardSteps at ids in the navigation bar (#186) - fix #183 - provide a description for the new usecase of the stepId input --- README.md | 1 + .../wizard-navigation-bar.component.html | 2 +- .../wizard-navigation-bar.component.spec.ts | 65 ++++++++++++++----- 3 files changed, 52 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index c12202be..576801d5 100644 --- a/README.md +++ b/README.md @@ -145,6 +145,7 @@ One of these two ways is by using the `` component. #### \[stepId\] A wizard step can have its own unique id. This id can then be used to navigate to the step. +In addition the `[stepId]` of a wizard step is used as the `id` of the `li` element for the wizard step in the navigation bar. #### \[stepTitle\] A wizard step needs to contain a title, which is shown in the navigation bar of the wizard. diff --git a/src/lib/components/wizard-navigation-bar.component.html b/src/lib/components/wizard-navigation-bar.component.html index 32afb4cb..ebdb0a70 100644 --- a/src/lib/components/wizard-navigation-bar.component.html +++ b/src/lib/components/wizard-navigation-bar.component.html @@ -1,5 +1,5 @@