PhoenixLiveViewDropzone (phoenix_live_view_dropzone v0.0.13) View Source

Phoenix Live View Dropzone

A file upload solution for Phoenix Live View.

Link to this section Summary

Functions

Renders the LiveComponent.

Link to this section Functions

Renders the LiveComponent.

Options

  • file_data - map - A %{"id" => id, "url" => url} assign used to pass upload urls to the component hook.
  • dom_id - string - Sets the id attribute on the outer div, defaults to phoenix-live-view-dropzone.
  • css_class - string - Sets the class attribute on the outer div, defaults to phoenix-live-view-dropzone.
  • hook_name - string - Sets the phx-hook value on the outer div, defaults to PhoenixLiveViewDropzone.
  • file_types - string or list of strings - Sets the mime types the file picker will allow.
  • target - string - Sets the phx-target value for events.
  • text - string - Sets text that will be displayed above the button in the dropzone.