You need to sign in to do that
Don't have an account?
Christian Schwabe 9
LWC: Progress Indicator (current step)
Hi my friends,
currently I'm struggeling with the "current-step"-parameter on the lightning progress indictator (lightning-progress-indicator) in lightning web components.
I have a progress indicator:
and a button that should switch the current step:
The eventhandler-method is called correctly (I see it in the console), but and that's is the part I don't understand: The current-step of progress indicator is not changed visually.
Anyone an idea for the reason?
I am grateful for any help.
Best regards,
Chris
currently I'm struggeling with the "current-step"-parameter on the lightning progress indictator (lightning-progress-indicator) in lightning web components.
I have a progress indicator:
<lightning-progress-indicator class="slds-align_absolute-center" current-step={currentStep} type="base" variant="base"> <lightning-progress-step label="VIEW DUPLICATES" value=1></lightning-progress-step> <lightning-progress-step label="COMPARE RECORDS" value=2></lightning-progress-step> <lightning-progress-step label="CONFIRM MERGING" value=3></lightning-progress-step> </lightning-progress-indicator>
and a button that should switch the current step:
<lightning-button variant="brand" label="Next" title="Next" disabled={nextButtonDisabled} onclick={handleNext}></lightning-button>and a corresponding eventhandler-method:
handleNext(){ console.log('>>>handleNext in mergeDuplicates.js called.'); console.log('>>>this.currentStep: ' + this.currentStep); switch (this.currentStep) { case 1: this.currentStep = 2; break; case 2: this.currentStep = 3; break; default: break; } console.log('>>>this.currentStep: ' + this.currentStep); }
The eventhandler-method is called correctly (I see it in the console), but and that's is the part I don't understand: The current-step of progress indicator is not changed visually.
Anyone an idea for the reason?
I am grateful for any help.
Best regards,
Chris
All Answers
thank you for your support. That fix my problem!
Regards,
Chris