question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow 'Element' type for arrows

See original GitHub issue

First off, thanks for the library!

Currently, the arrows prop allows object with keys prev and next which both must be string. However, per the Glider.js documentation, element instances can be passed here as well instead of the selectors. See https://nickpiscitelli.github.io/Glider.js/ -> Settings -> arrows

It’d be great if this library took that into account as well

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
yashvesikarcommented, Nov 12, 2021

I messed around with this issue here: https://github.com/yashvesikar/react-glider/commit/fc742b3af6327144cba2568510d8734a9d4e464d does this seem like an acceptable solution to the problem?

Thanks for any input 😃 I can make a PR if it looks good. @kevinfarrugia @hipstersmoothie

0reactions
hipstersmoothiecommented, Dec 21, 2021

🚀 Issue was released in v3.0.0 🚀

Read more comments on GitHub >

github_iconTop Results From Across the Web

div element with arrow - css - Stack Overflow
I'm trying to show a div element which has an indication arrow pointing to the top right. I'm using CSS and HTML.
Read more >
How To Put Arrows at the Bottom of a Div - DEV Community ‍ ‍
First you'll start by using the pseudo-class selector, :after. Inside of the selector, you need to set a value for the content property....
Read more >
Arrow function expressions - JavaScript - MDN Web Docs
An arrow function expression is a compact alternative to a traditional function expression, with some semantic differences and deliberate ...
Read more >
Forms: The Complete Guide-Part 2 - Boxes and Arrows
As you type in the input, a dropdown list shows you matching options. You can click on an option or use the arrow...
Read more >
How to Select Elements - The Arrow Tool
In this article, you can learn how you can select one or more elements in 2D and what methods are available to do...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found