hopscotch icon indicating copy to clipboard operation
hopscotch copied to clipboard

Feature: Can we show callout or step without an arrow using json configuration?

Open k10world opened this issue 10 years ago • 9 comments

I was planning to work on the enhancement #84 and to do that, we need a way to hide the arrow for the callout/step.

I also came across a use case from a couple tours our PM's were planning. The last step of the tour is more of a thank you and a notification that your successful completion of this workflow will result in x. So this notification doesn't belong to any particular element in the DOM, but a general notification, placed in centered/bottom-right/top-right of the page which fades out, eventually. Again something similar to #84

Is there a way to hide the arrow, with configuration? Without hacking it together with onShow?

k10world avatar Jul 03 '14 21:07 k10world

For a callout I was able to do it onShow and hide this class .hopscotch-bubble-arrow-container. A workaround not a solution.

k10world avatar Jul 14 '14 22:07 k10world

Will a very large arrowOffset (e.g. 10000) not achieve this by pushing the arrow off the screen? A bit of a hack I know, but seems to be working for me...

apitts avatar Mar 30 '15 09:03 apitts

Actually...it introduces a horizontal scrollbar so not ideal...

apitts avatar Mar 30 '15 10:03 apitts

@k10world thanks for your commit. I'm going to try out your solution. Indeed having a way to hide the arrow would be neat, especially since at times, the arrow can give the impression that user input is expected, when maybe you do not want it.

Any plans to integrate this in master?

thbar avatar Sep 10 '15 09:09 thbar

I was just going to ask for something like this. It's very useful for the start / end of a tour where you might just want a bubble centered in the screen with a Welcome or a Thanks message.

sganz avatar Oct 05 '15 18:10 sganz

This would be very useful. I have the same use case as @sganz. I want to have a bubble at the start that doesn't point to anything.

ryanjm avatar Jan 22 '16 03:01 ryanjm

I m looking for a way to hide this arrow too like @sganz and @ryanjm

ghost avatar Mar 31 '16 15:03 ghost

I had the same issue, didn't see the commit above (I guess it hasn't been integrated yet).

In my own code, i'm doing this within the onShow method for a given step:

$('.hopscotch-bubble-arrow-container').css('visibility', 'hidden');

Of course, I have jQuery available, but it should be easy to do the same with vanilla js. I chose to use the visibility property, because I didn't want anything to get positioned differently than usual, but display: none; would be another option.

One thing to note is that the tour bubble gets 'regenerated' for each step so you don't need to remember to add back the arrow when you want it- but of course you have to re-hide it too if that's desired. Not perfect, but at least it's only using the library API to achieve the desired behavior. I posted a different issue a few days ago that required an actual library tweak.

Doesn't seem like there's much recent development on this project, which is a shame since it's mentioned frequently related to onboarding/product tours.

travstone avatar Mar 31 '16 16:03 travstone

+1 would love to see this as an option in the lib

jamespsterling avatar Dec 07 '17 17:12 jamespsterling