How to Use "Hide When Disabled" on Context Menu Items
I'm looking at adding items to the context menu in the viewer and I can see there is an option for "Hide When Disabled". I would love to be able to use this feature but my problem is I can't figure out how I would disable a context menu item.
I read the context menu doco here and it doesn't answer my question. (I could have missed something).
Does anyone know how to manage the disabled status of context menu items?
Aside - fairly capable technically so feel free to suggest hooking into events, context menu module or anything.
-
Hi Matthew,
Is it possible for you to describe the actual case that you're attempting by disabling context menu item?
Cheers,
Pairin
0 -
Thanks for the response @Pairin Mason? ,
I'm a little worried we will confuse business requirements with capability so I'll provide some cases but can we please focus on the question?
We need to disable/enable buttons in context menus in the following (but not limited) cases:
- If the user is not in a certain user group
- If an application state is in effect - eg. Specific Task State --> Other Task State
- If I have nothing in my results list (eg, result list is empty)
- If the result group is a feature layer (So based on a feature service)
Cheers,
Matt
0 -
Hi Matthew,
Currently, we don't support a way for customers to configure the enabled/disabled state of the context menus out of the box. We control the states of the menu-items behind the scenes as a part of our command/action architecture.
However, this could be accomplished with writing custom code, but the support would come in future release.
Cheers,
Pairin
0 -
Thanks for the information Pairin! That makes a lot of sense and helps with my current tasks :)
0
Vous devez vous connecter pour laisser un commentaire.
Commentaires
4 commentaires