title: How to show electron context menu upon right click on table row
body: <p>I am trying to learn Electron and building a simple application. In the HTML part, I have table with some rows.<br>
  I have created the context menu using "electron-context-menu" NPM package. Now I want that when I right click on any row of the table then some menu will popup, like remove row.<br>
  For example, I have a row like below:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;tr&gt;
    &lt;td id="name-1"&gt;&lt;/td&gt;
    &lt;td id="prog-1"&gt;&lt;progress id='progress-1' max='100' value='0'&gt; &lt;/progress&gt;&lt;/td&gt;
    &lt;td id="size-1"&gt;&lt;/td&gt;
    &lt;td id="status-1"&gt;&lt;/td&gt;
    &lt;td style="display:none;" id="path-1"&gt;&lt;/td&gt;
    &lt;td style="display:none;" id="link-1"&gt;&lt;/td&gt;
    &lt;td style="display:none;" id="formatid-1"&gt;&lt;/td&gt;
  &lt;/tr&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Now when I right click on this row, then only the remove row menu should appear and upon click of that menu, I want to call a function <code>deleteRow(this)</code> which will remove the row.<br>
  For dynamically adding and deleting rows, I am using code from:</p>
  
  <p><a href="http://jsfiddle.net/7AeDQ/" rel="nofollow noreferrer">here is JSFiddle</a></p>
  
  <p>Any help? Also, how can I get the id of element in row?</p>