filemanager menu customization

I need the following behaviour.

when user right clicks on file, We need to show "upload version" menu item, once the user click on create version item, need to show popup with uploader.

when the user clicks on empty content in grid view, We need to show "upload" menu item.

How this can be possible to show menu item based on file click or empty right click



  • edited January 13


    If you just need to display different titles for the "upload" menu item, you can implement in within the menuFilter handler. It is called each time the menu is about to be shown.

        //menu object
        var menu = $$("files").getMenu();
        //information about the clicked item in the File Manager
        var context = menu.getContext();
        if( == "upload"){
          var value ="Upload version":"Upload";
          menu.updateItem(, {value:value})
        return true;

    You can also check the documentation of the "actions" menu.

  • Thanks for reply.

    I need to show behaviour differently
    1. If user right clicks on doc/pdf file, we need to show "upload version" menu item.
    2. if user right clicks on folder. we need to show "upload" menu item

  • Then you can get the data item object and access its type property to set the necessary menu item text.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!