Generic media selector LiveView.
Provides a reusable interface for selecting media files from anywhere in the admin panel. Supports both single and multiple selection modes.
Usage
# Navigate to selector with query params
/admin/media/selector?return_to=/admin/publishing/edit&mode=single&filter=imageQuery Parameters
return_to- URL to navigate back to (required)mode- "single" or "multiple" (default: "single")selected- Comma-separated pre-selected file IDs (optional)filter- "image", "video", "all" (default: "all")page- Page number for pagination (default: "1")
Summary
Functions
Callback implementation for Phoenix.LiveView.handle_event/3.
Callback implementation for Phoenix.LiveView.handle_params/3.
Callback implementation for Phoenix.LiveView.mount/3.
Callback implementation for Phoenix.LiveView.render/1.
Functions
Callback implementation for Phoenix.LiveView.handle_event/3.
Callback implementation for Phoenix.LiveView.handle_params/3.
Callback implementation for Phoenix.LiveView.mount/3.
Callback implementation for Phoenix.LiveView.render/1.