title: Electron Menu change item Label dynamically
body: <p>I can't find a way of changing a label of a context menu. I want to change the label depending on the type of the node I right click on.</p>
  
  <p>I've tried this without success:</p>
  
  <pre><code>$('#region-sortable').bind('contextmenu', function (e) {
        e.preventDefault();
        liRegionSelectionne = e.target;
        if(liRegionSelectionne.tagName.toLowerCase() == "span"){
          menuEditRegion.items[0].label = "Modifier cette Remarque";
        }else{
          menuEditRegion.items[0].label = "Modifier cette Région";
        }     
          menuEditRegion.popup(remote.getCurrentWindow());
      }); 
  </code></pre>
  
  <p>I can see in the console that the label is changed in the object <code>items[0]</code>, but when the menu pops up the label is the one I put when I originally declared the menu.  </p>