Skip to content

v-b-hover with variable input #6706

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
naletups opened this issue Jul 19, 2021 · 1 comment
Closed

v-b-hover with variable input #6706

naletups opened this issue Jul 19, 2021 · 1 comment

Comments

@naletups
Copy link
Contributor

Does the v-b-hover directive provide a convenient way of passing not only true/false, but also a custom parameter? If you have multiple elements on your page, it can become quite tedious and resource intensive to create a large set of handlers.

For the time being, I resorted back to using the event hooks directly on all the elements, similar to as the directive: @mouseenter="onHover(0) @mouseleave="onUnhover(0) and so on (see also comments at end of #4771 for more use cases)

@Hiws
Copy link
Member

Hiws commented Jul 20, 2021

I guess you could create an inline function.
v-b-hover="v => onHover(v, 'some other value')"

@Hiws Hiws closed this as completed Aug 1, 2021
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