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
Dropdown menu in context "user-login" #185
Comments
the dropdown script is included on the page (I only pasted part of the html). I can align the menu in the proper place by placing the <ul class="dropdown-menu"> inside the <a> tag, but I'm following the example found on the metroui website. When I set the ul to "dropdown-menu open" it will display in the correct place, but it will never close (or open). Another thing: my page shows a bullet point at the top left corner, belonging to the <li data-role="dropdown">. |
So, the dropdown menu works for you? Then, what was your initial problem? |
it doesn't. With "dropdown-menu open" it displays (but does not close), without "open" it does not show at all. |
Hm, the link does not seem to work (for me). At least, I also recognized the bullet point at top left on my site, too ... |
screenshot link fixed (sorry). |
Hm, ok, I see. Well, I hope @olton has an idea, as I also need that functionality. :-) |
So yeah, this sort of turned into a feature request I guess: dropdown menus from "any given" (clickable) object. |
+1 |
I believe I did this earlier this week..
Clicking on the red colored tile shows the menu. Of course you need a bit of CSS.
The CSS shown is just for the dropdown. |
I also had an issue with dropdown.js where if I added event handlers to my dropdown menu items, they weren't being triggered. I have a fix for this and made a pull request. |
trying to recreate your solution, but to no avail. class="dropdown-menu open" shows the menu renders in the right place, but it does not appear when the icon is clicked. Code below |
|
I copied your markup and tested. It didn't work. Made some adjustments, try this which DID work:
CSS: Of course you can play around with the CSS to position wherever you want. |
Sorry, was away over easter. Tested today and no luck. When I set
|
Ho hum. Forgot to include jquery. Excuse me whilst I crawl under a rock and shoot myself. |
Please consider the following code:
The idea is a context menu that appears when the avatar/username is clicked, but this concept seems to not work. Any thoughts?
The text was updated successfully, but these errors were encountered: