PhoenixPaper.AccordionActions (PhoenixPaper v0.1.0)

Copy Markdown View Source

An optional row of right-aligned buttons at the end of an expanded PhoenixPaper.Accordion (pp_accordion_actions/1) — shown only while expanded, the same as PhoenixPaper.AccordionDetails. See PhoenixPaper.Accordion's moduledoc for a full example.

<.pp_accordion_actions id="acc1">
  <.pp_button variant="text">Cancel</.pp_button>
  <.pp_button variant="text">Save</.pp_button>
</.pp_accordion_actions>

Summary

Functions

Renders an accordion's action row. See the module doc.

Functions

pp_accordion_actions(assigns)

Renders an accordion's action row. See the module doc.

Attributes

  • id (:string) (required) - the same id passed to the parent pp_accordion/1.
  • paperize (:boolean) - Defaults to true.
  • class (:any) - Defaults to nil.
  • Global attributes are accepted.

Slots

  • inner_block (required)