title: show the list of files from google drive folder in a modal dialog
body: <p>Hi I'm trying to get a list of files in one of my drive folder to be displayed using .showModalDialog
  here is what i've got so far</p>
  
  <p>///gs.code</p>
  
  <pre><code>function ImportSBMessage() {
          var html = HtmlService.createHtmlOutputFromFile('Message');
          SpreadsheetApp.getUi() // Or DocumentApp or SlidesApp or FormApp.
         .showModalDialog(html, 'List of files in folder');
  }
  
  function getfiles(){
  
      var id = DriveApp.getFoldersByName('attach to Email').next().getId();
      var files = DriveApp.getFolderById(id).getFiles();
     while (files.hasNext()) {
      var file = files.next();
      Logger.log(file);
      return file
    }
  </code></pre>
  
  <p>}</p>
  
  <p>///html........(this part i don't know how to do it so it will return my list of files)</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  
  
  &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;meta name="viewport" content="width=device-width, initial-scale=1.0"/&gt;
  &lt;link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"&gt;
  &lt;link rel="stylesheet" 
    href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css"&gt;
  
  &lt;/head&gt;
   &lt;body&gt;
     &lt;script&gt;
  
     google.script.run.withSuccessHandler().getfile();
  
  
     &lt;/script&gt;
  
  
  
  
  
  
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>thanks</p>