Search code examples
codenameone

How do I remove specific components from the sidemenu?


I added components to sidemenu by the code below

getToolbar().addComponentToSideMenu(btn1)

How do I remove btn1 from sidemenu?


Solution

  • This seems to be an omission in the API that probably should be corrected. Typically side menus aren't modified and at most, things are disabled so there was no request for this functionality.