Is a pure JS web-component for tour like Bootstrap Tour but is made with web-components
bower install --save vainilla-tour
<vainilla-tour with-labels='true' name='tourname' id='uniqueID'>
<step-tour for='elementId' background='colorHEX' color='colorHEX'>
...Custom tags for HTML
</step-tour>
</vainilla-tour>
property | default | require | description |
---|---|---|---|
with-labels | false | no | show or hidde labels |
name | yes | name for unique when use multiple tours |
property | default | require | description |
---|---|---|---|
for | "" | no | element id reference |
color | black | no | the custom font-color HEX or byName |
background | white | no | custom background color for element |
In your attachedCallback element uses init()
function to vainilla-tour to start
...
//If you use a polymer
element.attached: function () {
document.querySelector('#uniqueID').init();
}
...
//If you use pure JS
element.attachedCallback = function () {
document.querySelector('#uniqueID').init();
}
After you clone Run these steps:
npm install
bower install
link(rel='import', href='../dist/vainilla-tour.html')
to link(rel='import', href='../src/vainilla-tour.html')
npm start
localhost:3000/src/demo.html