I have a menu whose contents need to change significantly based on user interaction. This means that some new menu items need to be introduced, and some need to be removed. Looking at Dojo's published API documentation, there doesn't seem to be a way to redo a menu's contents without removing existing items and recreating the menu from scratch.
getChildren() method returns an array suggesting that there might be a relatively simple way of inserting menu options at specific index positions. Unfortunately, however, I can't find a way to attach an array of menu items into a
Does anyone know of a direct way (using the API)?