usablica / intro.js

Lightweight, user-friendly onboarding tour library
http://introjs.com
Other
22.8k stars 2.59k forks source link

Click , Focus , Type in class or id or any object #440

Closed Global90 closed 3 years ago

Global90 commented 9 years ago

please add Click , Focus , Type in class or id or any object

Maado commented 9 years ago

can you explain more please ?!

krngrvr09 commented 9 years ago

I am assuming you want to define clicking of an element, insert some text in a textbox, as attributes in the IntroJs itself.

You can do these things in the onbeforechange,onafterchange callbacks.

Let me know if wrongly understood your request.

Maado commented 9 years ago

might be he want a callback for each step . not for whole the intro

AntoineWtrnd commented 5 years ago

@krngrvr09, you can't use Focus(); of jQuery using onafterchange since this call back is not really called on after the change. The callback is called before the tooltips fully appear, so you can't focus anything.

You just, can't focus input at all using IntroJS.

The only way was onafterchange but it will focus for 0.1 sec, then, since tooltip has not been loaded (even it a "after change"), it will remove the focus.

So you need a verry well done workarround to focus using IntroJS.

I suggest you to use Bootstrap Tour.

IntroJS have alot of bug and not fully upaded with alot of issues still opened.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.