Skip to content
This repository has been archived by the owner on Jan 11, 2022. It is now read-only.

Using htmlElement object insted of selector #35

Open
isneezy opened this issue Sep 11, 2017 · 4 comments
Open

Using htmlElement object insted of selector #35

isneezy opened this issue Sep 11, 2017 · 4 comments

Comments

@isneezy
Copy link

isneezy commented Sep 11, 2017

Hi, first of all thanks for creating a such good tool!
I'm working on a project with vue.js and im using your library. but i want to follow the good principles and use your lib as a directive, the problem now is that vue directives functions receive the elements as an HtmlElement object and the Sticky constructor only accepts element selector.

Is there a way of doing it? I cant figure it out

@cristianmartinez
Copy link

I'm trying to do the same with angular, any update?

@sifex
Copy link

sifex commented Sep 20, 2018

@isneezy Better off using something hand-crafted like this:
https://gist.github.com/javierarques/36d3cd821c5a36acd352c11f88bbf2f4

@isneezy
Copy link
Author

isneezy commented Sep 20, 2018

@sifex thanks I'll check that out

@sifex
Copy link

sifex commented Sep 20, 2018

@isneezy Actually, nevermind, found out it doesn't help with computed width and height

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

No branches or pull requests

3 participants