Git Product home page Git Product logo

Comments (6)

RobbieTheWagner avatar RobbieTheWagner commented on July 29, 2024 1

@grapho You are totally right, we had a lot of updates to make to get this to the current Shepherd API! I just opened a PR to update all that. Mind trying it out?

from ember-shepherd.

RobbieTheWagner avatar RobbieTheWagner commented on July 29, 2024

@grapho I'm not sure I understand. Can you not change the target of the test helpers? You can pass document.body as the context for the tests, rather than the default of the Ember testing container.

from ember-shepherd.

RobbieTheWagner avatar RobbieTheWagner commented on July 29, 2024

Also, why do you need to fork to expose modalContainer? Can't you pass that option currently as part of your steps/tour config?

from ember-shepherd.

grapho avatar grapho commented on July 29, 2024

@rwwagner90 Thanks for the response!

I resolved the issue with the test helpers, so we can close this issue. I may have posted the issue in a moment of temporary frustration :p

However, I did take a look at the tour service in the addon repo... i do not see modalContainer being passed to or set onto the tour instance, so I just did a quick fork to test that theory.

from ember-shepherd.

RobbieTheWagner avatar RobbieTheWagner commented on July 29, 2024

I resolved the issue with the test helpers, so we can close this issue. I may have posted the issue in a moment of temporary frustration :p

No problem! We have all been there 😃

However, I did take a look at the tour service in the addon repo... i do not see modalContainer being passed to or set onto the tour instance, so I just did a quick fork to test that theory.

There is not an explicit option in the service for it, but I think it can be passed as part of your vanilla Shepherd config perhaps? I could be wrong. Let me know what you find!

from ember-shepherd.

grapho avatar grapho commented on July 29, 2024

There is not an explicit option in the service for it, but I think it can be passed as part of your vanilla Shepherd config perhaps? I could be wrong. Let me know what you find!

Confirmed, setting defaultTourOptions.modalContainer on the tour service does not do anything on its own.

I could attempt to set the property directly onto Shepherd object.. but as far as I can tell, Shepherd is not instantiated until addSteps is called which is too late (according to the api docs)

From reading the code it seems the Tour Service grabs its config setting that it has defined and passes them into Shepherd object when it gets initialized

from ember-shepherd.

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.