View Source PetalComponents.Modal (petal_components v0.19.1)

Link to this section Summary

Functions

Attributes

  • title (:string) - modal title. Defaults to nil.
  • close_modal_target (:string) - close_modal_target allows you to target a specific live component for the close event to go to. eg: close_modal_target={@myself}. Defaults to nil.
  • max_width (:string) - modal max width. Defaults to "md".
  • rest (:global)

Slots

  • inner_block

Link to this section Functions

Link to this function

hide_modal(close_modal_target \\ nil)

View Source

attributes

Attributes

  • title (:string) - modal title. Defaults to nil.
  • close_modal_target (:string) - close_modal_target allows you to target a specific live component for the close event to go to. eg: close_modal_target={@myself}. Defaults to nil.
  • max_width (:string) - modal max width. Defaults to "md".
  • rest (:global)

slots

Slots

  • inner_block