HTML and CSS Reference
In-Depth Information
and update the UI to display each of these files with View, Edit, and Delete buttons. Right
after the displayFileSystem function you created previously, add the code from the
next listing.
Listing 3.10. app.jsā€”Building the file list UI from an array of files
Now, to execute the displayBrowserFileList function you just created, you need
to pass an array of all the files in the app's directory. The updateBrowserFilesList
function will do just that, using a DirectoryReader object and reading the list of files
one set of files at a time until all files in the app's directory have been read. Add the code
from the next listing right after the displayBrowserFileList function.
 
Search WWH ::




Custom Search