Skip to content

In viewport element of the component #9

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

Closed
adyz opened this issue Aug 18, 2017 · 2 comments
Closed

In viewport element of the component #9

adyz opened this issue Aug 18, 2017 · 2 comments

Comments

@adyz
Copy link

adyz commented Aug 18, 2017

Hi guys,

Awesome project!

Newbie with Vue.js here!

I was wondering if this mixin can help me detect if one of the components child, an HTML element, is in view-port.

I have a really tall component (a form with lots of inputs and I want to know when the user is close to an input so that I can show some helpers).

Thanks!

@weotch
Copy link
Member

weotch commented Aug 21, 2017

Not directly. You would need to either make a new component for that child and have that use this mixin or you could use the directive version: https://github.com/BKWLD/vue-in-viewport-directive.

@weotch
Copy link
Member

weotch commented Aug 21, 2017

Relates to #7

@weotch weotch closed this as completed Aug 21, 2017
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

2 participants