PetalComponents.SlideOver (petal_components v3.0.0)

View Source

Summary

Functions

Attributes

  • id (:string) - Defaults to "slide-over".
  • origin (:string) - slideover point of origin. Defaults to "right".
  • close_slide_over_target (:string) - close_slide_over_target allows you to target a specific live component for the close event to go to. eg: close_slide_over_target={@myself}. Defaults to nil.
  • close_on_click_away (:boolean) - whether the slideover should close when a user clicks away. Defaults to true.
  • close_on_escape (:boolean) - whether the slideover should close when a user hits escape. Defaults to true.
  • title (:string) - slideover title. Defaults to nil.
  • max_width (:string) - sets container max-width. Defaults to "md".
  • class (:any) - CSS class. Defaults to nil.
  • hide (:boolean) - slideover is hidden. Defaults to false.
  • Global attributes are accepted.

Slots

  • inner_block

Functions

hide_slide_over(origin, id \\ "slide-over", close_slide_over_target \\ nil)

show_slide_over(origin, id \\ "slide-over")

slide_over(assigns)

Attributes

  • id (:string) - Defaults to "slide-over".
  • origin (:string) - slideover point of origin. Defaults to "right".
  • close_slide_over_target (:string) - close_slide_over_target allows you to target a specific live component for the close event to go to. eg: close_slide_over_target={@myself}. Defaults to nil.
  • close_on_click_away (:boolean) - whether the slideover should close when a user clicks away. Defaults to true.
  • close_on_escape (:boolean) - whether the slideover should close when a user hits escape. Defaults to true.
  • title (:string) - slideover title. Defaults to nil.
  • max_width (:string) - sets container max-width. Defaults to "md".
  • class (:any) - CSS class. Defaults to nil.
  • hide (:boolean) - slideover is hidden. Defaults to false.
  • Global attributes are accepted.

Slots

  • inner_block