Drop down menu - best practices?

Hi guys,

I’m wondering the best way to create this style of drop down?

The button on the right would be used as a toggle to display the data.

thanks

Something like that would be ok for you ?
You create a boolean variable (message_categories_open false by default) and bind it to conditionnal rendering :

  • down : message_categories_open = false
  • up : message_categories_open = true
  • dropdown-list : message_categories_open = true

Then you add a workflow on :

  • down : change variable → message_categories_open to true
  • up : change variable → message_categories_open to false

CleanShot 2024-03-21 at 13.07.23
CleanShot 2024-03-21 at 13.06.37

1 Like

That’s great thank you so much!

Im assuming you’ve made your own ‘drop down’ sections through the use of containers and divs?

Yeah it is only divs :wink:

I just renamed it so it is more understandable

1 Like

you are a legend, thank you! I think you helped me on my other issue too :slight_smile:

1 Like

You are welcome ! Great to know :smile: