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

Next/Previous Arrow Control #45

Open
tylerwiegand opened this issue Jan 17, 2020 · 5 comments
Open

Next/Previous Arrow Control #45

tylerwiegand opened this issue Jan 17, 2020 · 5 comments

Comments

@tylerwiegand
Copy link

JUST IN CASE anyone is about to spent too much time looking (like I did) for support for the previous and next arrows, look no further than the Workbench.vue file in the vue-glide-js folder. Inside your vue-glide component just paste that bad boy in there and you got your buttons.

<vue-glide>
   <vue-glide-slide>
      content here
   </vue-glide-slide>
   <template slot="control">
      <button data-glide-dir="<">prev</button>
      <button data-glide-dir=">">next</button>
   </template>
</vue-glide
@tyler-morales
Copy link

@tylerwiegand How can you both of the buttons as a whole? I've tried wrapping the two buttons inside one div and use a class on that, but then the button functionally breaks down. Essentially, what I'm trying to accomplish is centering the buttons in the middle of my slider. Currently they are up against the left edge of the glide container.

@josegus
Copy link

josegus commented Sep 14, 2020

@tylerwiegand How can you both of the buttons as a whole? I've tried wrapping the two buttons inside one div and use a class on that, but then the button functionally breaks down. Essentially, what I'm trying to accomplish is centering the buttons in the middle of my slider. Currently they are up against the left edge of the glide container.

I did it:
image

Don't forget to use default css, so the slider wont break '~vue-glide-js/dist/vue-glide.css';

@tyler-morales
Copy link

tyler-morales commented Sep 16, 2020

@josegus I tried what you did, but the buttons aren't functional. Have you checked their functionality?

Screen Shot 2020-09-15 at 11 34 08 PM

@josegus
Copy link

josegus commented Sep 16, 2020

@josegus I tried what you did, but the buttons aren't functional. Have you checked their functionality?

Screen Shot 2020-09-15 at 11 34 08 PM

yes, I tried, it worked for me.

I'm just wrapping the control slot with a custom div, it should be enough to make it customizable

@antonreshetov
Copy link
Owner

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

4 participants