mitour

1.0.1 • Public • Published

MiTour

Changed and improved functions.

Added function skipNotExistNode() for steps.

Skips the step if the element is not found in the DOM tree. If the function is not specified step, then go to the next.

const tourConfig = [
  {
    skipNotExistNode: ({current, goTo}) => {
        console.log(`skip ${current}`);
    },
    selector: '[data-tut="reactour__iso"]',
    content:
      "Ok, let's start with the name of the Tour that is about to begin.",
    actionBefore: async () => {
      await timeout(5000)
      console.log('Hola!')
    },
  }
]

This is a fork of this project https://github.com/elrumordelaluz/reactour

Dependents (0)

Package Sidebar

Install

npm i mitour

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

77.4 kB

Total Files

5

Last publish

Collaborators

  • miroslaws24