Open PaoloFalomo opened 8 years ago
The current way around this is to just hack it using data-class
. You just have to avoid putting a .
in front of the first selector. Also first CSS selector must be a class.
<li data-class='my-selector > .customitem'> ...</li>
Hi! I love this tool :)
Description of the feature
I've made a tiny mod easy to integrate that will allow you to select targets using a custom css selector directly with a
data-customselector
html attributeTechnical purpose
Inside the method definition of
set_target
on the jquery.joyride.js file i want to suggest this tiny addon:From this:
To this:
What It's changing? (3 lines)
Example of usage
Inside the
<ol>
s each<li>
will now support adata-customselector
attribute.This has been tested by me. Fell free to contribute. ✔️ ⚠️ As for classes even in this custom css selector will be always taken the
:first()
target found.