Giter Site home page Giter Site logo

next element not visible about vue-tour HOT 3 CLOSED

pulsardev avatar pulsardev commented on August 16, 2024
next element not visible

from vue-tour.

Comments (3)

mmorainville avatar mmorainville commented on August 16, 2024

Hi @nunob87,

As it is now it's not easily feasible indeed. We'll discuss internally if it's really necessary to simplify the handling of invisible/not displayed elements.

But for now if you want a quick solution, you should be able to declare the list of steps in a computed property so that when a field in your form is updated (displayed or hidden), you'll change the array of steps accordingly at the same time. This way the array of steps will always reflect the elements displayed.
But of course it's a little bit more work on your side.

I'm not sure if I've been clear... if not feel free to ask for more precisions!

from vue-tour.

nunob87 avatar nunob87 commented on August 16, 2024

Hi @mmorainville

this is what I did, but I have a bug, I need to know if the tour is active or not, without using any variables to detect this is possible?

example

this. $ tours ['help']. state

another thing is
When I renew the steps, I have to do this. $ tours ['help']. nextStep (), to continue on the site I was in, is there no other solution?

thank you

from vue-tour.

mmorainville avatar mmorainville commented on August 16, 2024

I'm closing this for inactivity and because the root cause has probably been solved with async callbacks in later versions.
For the last answer though, to know if the tour is running you can use the isRunning computed property on the tour object.
this.$tours['help'].isRunning

from vue-tour.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.