Giter Club home page Giter Club logo

Comments (5)

benmarch avatar benmarch commented on May 27, 2024

Hey @jduprey, the steps should automatically be added to the tour once they are linked. Are you experiencing different behavior?

from angular-bootstrap-tour.

jduprey avatar jduprey commented on May 27, 2024

Yes.:

Here is the step before the modal dialog is opened. This step asked them to click a button. Reflex=true should have it advance to the next step, even when I remove it the current step's "next" button is disabled.

Step prior to dialog box:

<div class="col-md-1 grokker-series-add" uib-tooltip="{{!isLoggedIn() ? 'Please Log In to' : ''}} Load or Begin New Series" tooltip-placement="top" >
  <span class="btn" ng-click="addSeries()" ng-disabled="!isLoggedIn()"><a class="bento-icon-add"
                                                                          tour-step="series-button" bs-tour-reflex="true" bs-tour-order="100" bs-tour-placement="bottom" bs-tour-content='Click the new Series button to define a new group of queries.'></a></span>
</div>

on click of the "serried-button", addSeries() opens the modal

$scope.addSeries = function () {

        var modalInstance = $uibModal.open({
          animation  : true,
          templateUrl: 'app/views/partials/page/series-crud.html',
          controller : 'AddSeriesCtrl',
          scope      : $scope,
          size       : 'lg',
          resolve    : {
            contentTypes : function () {
              return ContentType.query();
            },
            seriesForUser: function () {
              return Series.query({'uid': Auth.getCurrentUser()._id});
            }
          }
        });

and w/in series-crud.html:

<div class="panel-default">
  <div class="panel-heading series-panel-heading"
  tour-step="series-dialog" bs-tour-order="110" bs-tour-placement="top" bs-tour-content='Define your series!.'>Series Options</div>
  <div class="panel-body wrapper-add-series-panel-body">

from angular-bootstrap-tour.

benmarch avatar benmarch commented on May 27, 2024

Ok it looks like there are two issues: the first is that the current step does not know about the next step when it is shown, so the "Next" button is disabled; and the second is that the navigation is happening before the next step loads. To fix both issues, try setting the "nextPath" and "nextStep" options on the tour step. Set the "nextPath" to the current Angular $location path (or "/" if you aren't using Angular router) and the "nextStep" to the name of the tour step in the modal. What this will do is tell the tour that there is another step, but it is not yet available, and then the tour will wait for that particular step to load before navigating to it.

I also noticed that you are using UI Bootstrap in your application. I highly recommend that you switch over to using Angular UI Tour instead of Angular Bootstrap Tour as it resolves many of the issues found in this library, and I expect to support it much longer.

from angular-bootstrap-tour.

jduprey avatar jduprey commented on May 27, 2024

Yes. I came across "Angular UI Tour" yesterday when I was looking for a solution. Thank you.

from angular-bootstrap-tour.

eliseguimaraes avatar eliseguimaraes commented on May 27, 2024

@benmarch I did the next path + next step on angular-ui-tour, but the "next" button is still hidden. I left 'tour-step-next-path=""', otherwise it would redirect me to a wrong page, and 'tour-ste-next-step="User data"', which is the title of the step inside the modal.

from angular-bootstrap-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.