Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

there should be a dropdown-hover #1693

Closed
AlexCppns opened this issue Jan 29, 2014 · 6 comments
Closed

there should be a dropdown-hover #1693

AlexCppns opened this issue Jan 29, 2014 · 6 comments

Comments

@AlexCppns
Copy link

Dropdown-toggle only triggers on click for now...

@mvhecke
Copy link
Contributor

mvhecke commented Jan 29, 2014

At the moment this project mostly revolves around mimicking the behavior of Bootstrap, that's why it isn't included. But of course feel free to do a pull request.

@chrisirhc
Copy link
Contributor

This is supported after #1616, on master. You need to write a directive that calls the toggle method on the dropdown controller on hover.

@gh-naylor
Copy link

I'm having trouble writing the directive. I'm using the dropdownToggle directive from https://github.com/angular-ui/bootstrap/blob/f715d0522589cbb16bbe7498573da5d7aad8802b/src/dropdown/dropdown.js as a guide, but without any luck.

Would anyone be so kind as to provide a working example?

@bekos
Copy link
Contributor

bekos commented Mar 12, 2014

@gh-naylor The event you should bind is the mouseenter, not hover. Did I guess right?

@bekos
Copy link
Contributor

bekos commented Mar 12, 2014

If anyone is interested in sending PR for this would be nice, but should also take care for closing the popup on mouse out.
This is not the standard behavior so we are not going to support it atm.

If you just want to open the dropdown on hover, it's pretty easy now by just adding something like:
ng-mouseenter="isopen = true" to the element you want to trigger the opening.

@bekos bekos closed this as completed Mar 12, 2014
@eddiejhong
Copy link

Are there plans to support opening dropdowns on hover in the near future?

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

No branches or pull requests

7 participants