Aurora.Uix.Templates.Basic.Renderers.UploadRenderer (Aurora UIX v0.1.4)

Copy Markdown

Renders a file upload field for a form.

Summary

Functions

Renders a file upload field.

Functions

render(assigns)

@spec render(map()) :: Phoenix.LiveView.Rendered.t()

Renders a file upload field.

In show mode, renders a download button when a file exists, or a "No file" indicator otherwise. In edit mode, shows a download button when the entity already has a file. The file input and entry list are only rendered when the field is not readonly or disabled.