ngx-joyride
ngx-joyride copied to clipboard
Dynamic Steps
Hey, I've been developing a tour with this library for the past week and it's really solid.
I've had to make a tweak to the application so we can create dynamic steps and wanted to know if there will be a way of doing this in the future or if there's a way of doing it now differently then I am.
currently my code looks like this:
this.joyrideService.stepService.optionsService.stepsOrder[17] = 'clientFirstStep@clients/' + id;
The compiler complains that stepService is private and ready only so we switched it to public before building our project. Would it be possible to update it so we can add or edit steps during the tour?
Making step service public also allowed us to implement iterating through tour using our mouse keys by utilizing the next, prev and done function.
this.joyrideService.stepService.next();
this.joyrideService.stepService.prev();
this.joyrideService.stepService.done();
Hi @BHoma91 ,
No, it's not possible to create dynamic steps for the moment (unless you use some hacks as you're already doing) but it could be a feature. I'll think about a smart way to implement it in the next days. Honestly I don't like so much the idea to have the stepService public but I'm open to any suggestions.
For what concern the possibility to have custom mouse/keyboard keys to move through the tour it could be another feature.
Any chance on making the stepService public? It would make custom buttons that need to call next/previous much easier.