SelectoComponents.Form.EventHandlers.ModalOperations (selecto_components v0.3.21)

Event handlers for modal dialog operations.

This module handles operations related to modal dialogs, particularly the detail view modal that can display record details in an overlay without navigating away from the current view.

imported-by

Imported by

This module is automatically imported when using SelectoComponents.Form.

info-messages-handled

Info Messages Handled

  • {:show_detail_modal, detail_data} - Display detail modal with data
  • {:close_detail_modal, modal_id} - Close and clear detail modal

feature-flag

Feature Flag

Modal detail view is an opt-in feature controlled by the :enable_modal_detail socket assign. If not enabled, modal events are ignored.

usage-example

Usage Example

# In your LiveView mount function:
socket = assign(socket, enable_modal_detail: true)

# To show a modal from a component:
send(self(), {:show_detail_modal, row_data})