Skip to content
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

How to manually trigger event? #6

Open
anabelle opened this issue Oct 25, 2017 · 1 comment
Open

How to manually trigger event? #6

anabelle opened this issue Oct 25, 2017 · 1 comment

Comments

@anabelle
Copy link

Hello,

I am looking for a way of getting a specific widget to come to the front and become active on hover.

I am trying to do it with css:hover style and it looks ok but when I try to drag or resize a hovered widget it still modifies the one below it.

I hav read the source and I see the resize start event would activate the widget and bring it to the front.
How could I trigger such an event on hover?

Thanks for any help you can give.

@canzy
Copy link

canzy commented Jan 29, 2018

Hi, I am not the author but I think what would work is to use the mouseover event. So you would add the following to the ngWidget element:

(mouseover)="onHover($event)"

In your javascript, in the onHover function, get the item from your event and call the onResizeStart() on the item.

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