Menu

#18 Context menu items cannot be hidden

open
nobody
None
5
2007-12-10
2007-12-10
Rene Zanner
No

Items of a context menu cannot be hidden using the API methods pcmf_hide() and pcmf_unhide().

Currently I (have to) use pcmf_disable() and pcmf_enable, but I do not want to show the inactive items.

Relevant code example:

if (isActive) {
activateItem.pcmf_hide();
deactivateItem.pcmf_unhide();
} else {
activateItem.pcmf_unhide();
deactivateItem.pcmf_hide();
}

The item corresponding to the item's current state should not be displayed - not even in "disabled" state.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB
Gen AI apps are built with MongoDB Atlas
Atlas offers built-in vector search and global availability across 125+ regions. Start building AI apps faster, all in one place.