How to create a widget for intro.js

1670
11
Jump to solution
11-19-2018 12:56 AM
GarethYoung1
New Contributor III

rscheitlin 

Hi Robert,

How would I go about creating a widget that will launch a Intro.js tour.  I've currently got it configured as a button on the header controller widget but would prefer it was a widget on its own (a bit like your URL widget) so when you click on it it starts the tour.

Thanks

Gareth

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Gareth,

   It is pretty simple. Here it is:

Adri2c Pérez Beneito

View solution in original post

11 Replies
RobertScheitlin__GISP
MVP Emeritus

Gareth,

   It is pretty simple. Here it is:

Adri2c Pérez Beneito

GarethYoung1
New Contributor III

Thanks Robert.

I've added it to my application successfully:

However, I'd like to add it as a widget rather than a button but I'm not sure where to start with creating one of these?

Also is it possible to add the button to an info widget box?

Many thanks for all your help

Gareth

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Gareth,

  ??? I have provided this as a widget already in my attachment.

0 Kudos
GarethYoung1
New Contributor III

I see thats for a buffer.  Can I just re-use thatcode.  I'm relatively new to javascript?

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

??? Gareth are you looking at my first reply to you and the attachment to that reply called IntroJS.zip? There is nothing about a buffer...

0 Kudos
GarethYoung1
New Contributor III

Robert, got it now.  Thank you so much.  Your help is very much appreciated

0 Kudos
GarethYoung1
New Contributor III

Robert, one further question, how do you make the widget have the ability to be added to a group?

0 Kudos
GarethYoung1
New Contributor III

This is the error that I get:

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Gareth,

  Because this is not an inPanel widget you can not group it. You would not want to group this widget anyway. When you group a widget and open the group the widegt would automatically start the into because the intro is initiated on widget startup.

0 Kudos