How to get list data using custom action in filemanager widget

I have created a custom action ‘download’, But there is no document about how to get the item where I right click, so how do I implement it in my own attachEvent? Here’s my code:

{
  view:"filemanager",
  ...,
  ready : function(){
    this.getMenu().add({
                id: "download",
                icon: "file",
                value: "Download"
              }, 8);
              var actions = this.getMenu();
              actions.attachEvent("onItemClick", function(id){
                if(id == "download") {
                 //HOW DO I GET THE ITEM DATA WHERE I CLICKED
                }
              })
}
}

Please check the corresponding method