Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Position of the button moved to the left if the showCounter is FALSE #580

Open
agreeshvs opened this issue Apr 29, 2022 · 0 comments
Open

Comments

@agreeshvs
Copy link

agreeshvs commented Apr 29, 2022

I have added tour guide in my angular project using ngx-joyride. This is superb package, easy to implement.
I have to show steps in multiple components, it is working using the route.

I have a created an array with all the steps in it. And using a button, the tour is initialized using the startTour().
In one of my page, I need to reopen the guide using a click on the info icon in the image. Is it possible without calling the same startTour() which is used in the button click with only one step `

let steps = ['step1','step2@user','step3@user','step4@user/details']
let rideOptions: JoyrideOptions = {
      steps: steps, 
      showCounter: false, 
      stepDefaultPosition: 'bottom', 
      showPrevButton: true, 
      logsEnabled: true, 
      waitingTime: 600,
    }
this.joyrideService.startTour(rideOptions);

From this example, I need to open the step3 when I click the joyride directive in the user. All other step should be hidden.

If I set the showCounter as false, the button position is moved to the left side. I have added some styles to the button like background color, color and border-radius.

image

This is how the button looks like.

"dependencies": {
 "@angular/core": "^11.2.11",
"ngx-joyride": "^2.4.0",
}

Thanks 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant