title: Can onClick refresh the page?
body: <p>I have a table attached to Datasource that I would like to update every 30 seconds, or on widget onClick action. For some reason this isn't working.</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>onAttach:
  
  window.reloadId = setTimeout(function() { widget.datasource.load(); }, 2 * 60 * 1000);
  onDetach:
  
  clearTimeout(window.reloadId);</code></pre>
  </div>
  </div>
  </p>