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
Change the step icon's style/innerHtml #222
Comments
So basically you want to add a symbol to a step-indicator in the navigation bar? If you can't get the correct element by its id I think you're either trying to access the element before it has been created (wrong angular lifecycle phase) or somehow the element does not exist. Can you share the created DOM tree for your code or a code-sample that produces the error? (a screenshot from a browser debugger should be ok). |
Hello, The first print is the wizard instance's log, and the second is the DOM. As you can see, my first step's stepId is "brigade", and i log it with console.log(document.getElementById('brigade')); and the log is null. Also this can not be angular lifecycle problem, since I log this on a button click long after the wizard is created. But this was working this way at the version you provided me some month ago. |
Which version of |
4.0.0 |
This is strange. Can you provide a minimal example leading to this issue? We have an example for the |
Nope, my code is similar to yours. <aw-wizard #wizard [navBarLayout]="'large-filled-symbols'" class="custom-css"> at .ts file i have a test method: This always logs me null. |
I need a minimal code example that leads to the error, otherwise it is hard for me to help. |
and i have a method on ts file: this logs me null, is this code enough? :) |
No this is only a snippet which misses a lot of information. Please provide a runnable example web-application that demonstrates your error. You can this either in a new Github repository or through a website like stackblitz. Without such an example it is really hard for me to reproduce the issue and thereby to help fix it. |
So here it is: |
After updating the version of |
gonna try out :) |
I take it as the problem has been solved? If you still face this issue feel free to open a new issue |
Hello,
Some months ago I had a problem and it was solved here: #186 , by adding a stepId for each wizard's step. I needed to add an error symbol to the wizard's step if the step had any errors, and I was doing it this way:
const stepElmnt = document.getElementById('stepsId');
stepElmnt.innerHtml += 'someHtmlThatWillPutAnErrorIconToStep';
Now i tried again to do the same thing, but I can not get the element by id, since with the latest wizard's version the value of stepElmnt is always undefined. What should I do to reproduce the same thing I did earlier?
Thanks, Gevko.
The text was updated successfully, but these errors were encountered: