Skip to content
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

IntroJS - Trouble adding additional widgets to config file #2

Closed
dwoodinnovate opened this issue Jul 11, 2018 · 3 comments
Closed

IntroJS - Trouble adding additional widgets to config file #2

dwoodinnovate opened this issue Jul 11, 2018 · 3 comments

Comments

@dwoodinnovate
Copy link

Hello,
Firstly I want to say thank you so much for this port of the introJS library for use in the WAB! I wondered if you could help me with an app that I am setting up. I have many additional widgets and I can't seem to find a way to adjust your config file to point to them. See screenshot.
image
If you notice this element has a (settingid="widgets_About_Widget_47") element but if I add this to the config file like so:
image
the introJS window pop's up in the middle of the screen.
image
Any ideas?

@AdriSolid
Copy link
Owner

Hello :)

Try to get the node by 'title', like this: getNode('[title="Change Log"]')

Cheers

@dwoodinnovate
Copy link
Author

Thank you for the reply. This solution wasn't quite what I needed but it guided me to the solution.

the Title is used in two places in the WAB. So InroJS selected the title text in the widget itself.
image

If the widget is closed the IntroJS window sits in the upper left corner.
image

So using your suggestion I tried getNode('[settingid="widgets_About_Widget_47"]') and got the desired outcome.

image

@AdriSolid
Copy link
Owner

Cool! I'm gonna add it in my readme!

Best

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants