title: How can i trigger a function in JS file from gmail addon button?
body: <p>I have js library which has some inbuilt functionalities required for our application. Now i want to import my js library and its css files in Gmail addon. After that i want bind a function to that button id so that whenever the button is clicked function in my library executes. </p>
  
  <p>How can i do that? Please see sample code</p>
  
  <p>As per the sample code <strong>myLib.js</strong> has function <strong>myFunc()</strong> which takes component id and url to be opened. So i created button and binding <strong>myFunc</strong> to it. How can i do the same thing using <strong><em>googlescript for gmail addon</em></strong>.</p>
  
  <p>Thanks in Advance</p>
  
  <pre><code>   &lt;head&gt;
        &lt;script src="https://*/app.bundle.js"&gt; &lt;/script&gt;
        &lt;script src="https://*/app.bundle.css"&gt; &lt;/script&gt;
        &lt;script src="https://*/myLib.js"&gt; &lt;/script&gt;
     &lt;/head&gt;
     &lt;body&gt;
       &lt;button id="app"&gt;Clickhere&lt;/button&gt;
       &lt;script&gt;
          myFunc('#app',URL);
       &lt;/script&gt;
     &lt;/body&gt;
  </code></pre>