Closed prschmid closed 3 years ago
@prschmid Really cool idea ! This gem wraps shepherd.js, did you open an issue there? :)
@kofronpi I think this is fully implementable without any changes to shepherd.js. Abraham could define a single-step tour and tie the start()
action to a click event on a particular DOM element.
@jabbett interesting ! you'd have to carefully consider what is configurable at the abraham-level and what is configurable at the shepherd-level (see the issue I opened - #8)
Just wondering if this suggestion is under consideration? It's a useful feature.
Just thinking through how this might be implemented:
AbrahamHelper.abraham_tour
to pass all a page's tours, regardless of completion, to the partial, along with a list of tour names that have been completed_abraham.html.erb
to
Can also be done by deleting the previous tour entry and reloading the page https://github.com/actmd/abraham/issues/42
For example when hovering over the "starred items" icon on Slack, you get a nice popup as follows
Then when you click on the icon, the (single step) tour begins
The nice thing is that the "hover" step doesn't need to be there (e.g. on mobile there is no "hover") and so it works nicely on both desktop and mobile.