File List
The File List component represents a list of files. It is visually similar to the Uploader component, but only allows the user to access files, not to upload them. Each file contains the file’s name, and may also include the date uploaded, file size and actions a user may take.
show-info
    time | size | none
      The additional information which should be displayed for each file. Defaults to 
  time.
    Properties of the children wm-file.
  id *
    stringA unique identifier for the file.
  name *
    stringThe file name, without the extension.
  type *
    string
      The file extension. NOT the MIME type! e.g. 
  pdf, not application/pdf.
    error-message
    stringSets the file in an error state with the provided message.
  file-actions
    string
      Space-separated list of available file actions. Accepts 
  preview download delete. Defaults to
      download delete.
    last-updated
    ISO stringe.g. 
  2020-01-28T22:29:10.397Zprogress
    stringA percentage value (0-100).
  size
    numberThe size of the file in bytes.
  Usage in HTML
Edit the code below to see changes reflected in the example above.
Usage in Elm
Code generated from HTML.
wmFilePreview
    
      Emitted when the user clicks the preview button. The event's detail
      property contains the file ID.
    
  wmFileDownload
    
      Emitted when the user clicks the download button. The event's detail
      property contains the file ID.
    
  The component renders a list. The semantics provide additional affordances to screen reader, such as the number of items in the list.
The icononly buttons have a tooltip for visual users, e.g. "Download" and a context-specific message for screen reader users, e.g. "Download filename.xls".