Looking for suggestions on context menus #151
-
A proper context menu opens a window (ideally near where you right clicked on the mouse) with a list of possible selections and then closes as soon as you make a selection. I have not been able to figure out how to make one close as soon as you make a selection (I am using clog-gui). At the moment I am using a form-dialog with a radio button control as a substitute, but interested in any hints someone might provide. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
I've observed this in menus (they are implemented with dropdowns). Would be nice to make them close as soon as they are clicked. |
Beta Was this translation helpful? Give feedback.
-
Dropdowns in clog are implemented using this: https://www.w3schools.com/w3css/w3css_dropdowns.asp |
Beta Was this translation helpful? Give feedback.
Dropdowns in clog are implemented using this: https://www.w3schools.com/w3css/w3css_dropdowns.asp
I think you could use a dropdown for your usecase, and in your click handler you remove w3-show class from the w3-dropdown-content element.