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 tophoenix-live-view-dropzone
.css_class
- string - Sets the class attribute on the outer div, defaults tophoenix-live-view-dropzone
.hook_name
- string - Sets thephx-hook
value on the outer div, defaults toPhoenixLiveViewDropzone
.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.