I wondered if it was possible to create a drop-down menu in the header as a normal application?
Yes, but we don’t have such an element (yet). The best way to do it and have an element like ours (see below) is to use a Group with Focus element and have buttons inside it. See this https://bubble.io/reference#Elements.GroupWithFocus
Ok thank you I see better now. But when I want to put a focus group in the header, the header is growing up the size of the group, I wish it opens above my page normally … sorry for my english, i’m french ^^
Yeah, our editor doesn’t handle that well, but what you can do is manually change the size in the property editor to something smaller, so that the group doens’t make it bigger. See what we did here: https://bubble.io/page?type=custom&name=header&id=meta_public&tab=tabs-1
I don’t understand how to make a clickable drop down list…so I put my buttons inside a Focus Group and then I just click the group to see the buttons? Whaaa? Clicking the group doesn’t expand the size of it, or hide it, or show it, or anything…I am hopeful!
Have a button that reacts to a click. Then in the workflow for the click, show the focus group.
Do I put the button inside the focus group, or like on top?
The button should be outside the focus group so it would be visible to click on.
Here’s what the process looks like step-by-step:
- Go to the header
- Add a focus group
- Put your UI elements (buttons etc) inside the group - those are the menu items
- Set the group to be invisible
- Resize the header by entering the size in the property editor
- Show the Group when the button (in the header) is clicked.
What if you want to do a hover action?
To do a hover action you have to use a group.
In the picture the first condition is when the button is hovered and the second condition is the group itself is hovered. You also need to set the visible on page load to off.
Thanks, that worked!
@nomads32n There’s also a workaround for showing a groupfocus on hover. The demo in this original post was deleted, but the links below show a similar example