Basic Joyride
43 | 44 |
45 | Joyride makes use of the Tooltip component, so it is required to also have it included in your project.
46 | You can define your Joyride stops by creating a HTML list and adding the `data-joyride` attribute. Make sure that the data-target
attribute within the li
-tags matches the id of the element you want to address.
47 |
<ol data-joyride data-autostart="true" id="docs-joyride">
49 | <li data-target="#basic-joyride">
50 | <h3>First</h3>
51 | <p>This is the default one without settings</p>
52 | </li>
53 | <li data-target="#sass-reference" data-next-text="Weiter" data-prev-text="Zurück">
54 | <h3>Second</h3>
55 | <p>This is the default one with custom texts</p>
56 | </li>
57 | <li data-target="#js-class" data-position="bottom" data-closable="false">
58 | <h3>Third</h3>
59 | <p>This one isn't closable</p>
60 | </li>
61 | <li>
62 | <h3>Fourth</h3>
63 | <p>If no target is specified, you create a modal.</p>
64 | </li>
65 | <li data-target="#trigger-start">
66 | <h3>Fifth</h3>
67 | <p>Your ride ends here!</p>
68 | <button class="button success" data-joyride-close>OK, thanks!</button>
69 | </li>
70 | </ol>
71 | Trigger start
72 |
73 | You can either have the Joyride start on page load, or by defining a button, etc. To enable auto start, set the data-autostart
attribute of the list to true. A custom trigger can be defined by adding the data-joyride-start
attribute pointing at the Joyride instance you want to start.
74 |
77 | 78 |
79 | 80 |Open issues
81 |82 | The following things are still open: 83 | 84 |
-
85 |
- Some sort of cookie usage to remember if the user already had a ride 86 |
- Proper testing 87 |
- Example as Markdown 88 |
- Align Gulp tasks and implement watching 89 |