Skip navigation
Currently Being Moderated

GetContextCommandsHandler

Aug 23, 2011 6:09 AM

I'm developing a costum context menu for Drive and have a use case where, based on the selected asset(s), some items should be visible or hidden.  If I understand correctly the GetContextCommandsHandler is used to build up the menu, and the CanEnableContextCommandHandler class is used for enabling or disabling the context menu item.

 

Is there a way that I can hide or remove it based on the selected asset(s)?

 
Replies
  • Currently Being Moderated
    Aug 23, 2011 9:04 AM   in reply to Nathanvdk

    Thanks for trying the custom context menu fearture, which is new for AD 3. 

     

    if CanEnableContextCommandHandler returns false, In Bridge, the menu is invisible for the user, for Finder/Explorer, the menu is in disabled status.  the user can see it, but she/he can do nothing with it.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points