As it's possible to add using menu.addMainItem
Is it possible to add menu.removeMainItem ?
How are you doing for Chronometer or Clock ? Where there is only Reset and Settings
Is it possible to remove/delete entries on the item menu
-
- Posts: 88
- Joined: Sun Jan 27, 2019 7:31 pm
- Location: Westende Belgium
- TrianguloY
- Posts: 109
- Joined: Thu Jan 24, 2019 9:46 am
Re: Is it possible to remove/delete entries on the item menu
There isn't, no. However if you don't want an entry, just don't add it.
Unless you want to remove the lightning existing entries.
You can use this to remove all of them:
menu.getMainItemsView().removeAllViews();
But removing only a specific one...that's harder.
Unless you want to remove the lightning existing entries.
You can use this to remove all of them:
menu.getMainItemsView().removeAllViews();
But removing only a specific one...that's harder.
-
- Posts: 88
- Joined: Sun Jan 27, 2019 7:31 pm
- Location: Westende Belgium
Re: Is it possible to remove/delete entries on the item menu
All is a very good start for me. Thanks
Bruno
-
- Posts: 88
- Joined: Sun Jan 27, 2019 7:31 pm
- Location: Westende Belgium
Re: Is it possible to remove/delete entries on the item menu
I think it's fine with remove all.
Thanks a ton
Thanks a ton
Bruno