-
Notifications
You must be signed in to change notification settings - Fork 106
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
Changing the step symbol background color programatically based on a condition #183
Comments
There are two ways I see you could do this:
|
Hello again, Thank you for your answer, I've already tried the first solution, but the way I did it, it didn't work (i might do something wrong). I've added a id for the first step, and then tried to reference it in the css like this: Also, I've tried to put the #step1 tag like this: But this didnt worked. I will try the second solution too, but for the first solution the way I've tried to get there didnt worked. Thanks. |
Sorry that was my fault, the first way can't work, because the navigation bar is a different element, which doesn't inherit the ids from the wizard steps. Please try the second way, it should work. Be aware that you need to build version |
Sorry to ask, but how can I build this version by myself into my angular project? |
You should be able to build it via |
Right, but where do I run each of the commands? Inside of my project directory? |
You run the first command inside your |
Well, I've done all as you said, but also I needed to install the node_modules of the angular-archwizard (clone) with npm install, so I've done that, builded the clone and installed it in my project, but now I've an warning when compiling my project:
And the component when I'm using the wizard has this error:
And I can understand that this error is based on the warning i received. What do you think it could be? |
The first two messages are simply warnings, you can ignore them for the moment (I can't say on the fly why they appear). Try to build your application (not |
Hmmm, the navigation bar is implemented in https://github.com/madoar/angular-archwizard/blob/develop/src/lib/components/wizard-navigation-bar.component.html. The problem is, that the content of the |
Thank you, I've notification on your project so I will get notified when this will be done. |
I'll likely take a look at this at the beginning of next week. There are two ways I see to solve this issue:
I'm currently more in favor of the second option, @earshinov what do you think? |
Well, the second option seems better for me. Also, your wizard is very cool and very responsive. Thank you for your patience and your responses. |
Hello again, I would like to help you to do this feature request, can you please give me some help to know where I should do the needed changes and add new functions? Thank you. |
Sorry, I forgot about this issue. If you want to give this a try: Basically you would only need to modify the
|
Hello @Gevko , @madoar , |
Hello,
I am using your wizard in my project, and I need to change the background color of some completed steps based on a condition. I've a form inside of each step, and when the wizard is completed is done a API order that will return all the errors of each form and the step in which each form has errors. So I need to mark each step that has errors in order to inform the use, and I want to mark it changing the color of the step symbol background color.
How could I archieve this behaviour?
I know already how to change the background color of the steps using:
:host::ng-deep aw-wizard-navigation-bar.horizontal.large-filled-symbols ul.steps-indicator li.done:after { background-color: red !important; }
but this changes the background color of all completed steps. Could you help me?
Best regards, Gevko.
The text was updated successfully, but these errors were encountered: