This demo creates a single, reusable menu for multiple elements. Click each "Show Menu" button to see the menu expand. By clicking the "Remove" button, it removes a "Show Menu". When all "Show Menu" buttons are gone, the elment is removed. After removing all the "Show Me" elements, the menu will be removed completely. This is done with the help of the destroyed special event.

Show Menu 1 Show Menu 2 Show Menu 3
Remove a "Show Menu"