Catalog Selection

<.actions_menu>

ConnieUI.Selection

HEEx
<ConnieUI.Selection.actions_menu :let={selection} id="catalog-actions-menu" selection={@selection}>
  <ConnieUI.Dropdowns.item click={JS.push("bulk:hold", value: Selection.to_params(selection))}>
    Put on hold
  </ConnieUI.Dropdowns.item>
  <ConnieUI.Dropdowns.item click={JS.push("bulk:delete", value: Selection.to_params(selection))}>
    Delete
  </ConnieUI.Dropdowns.item>
</ConnieUI.Selection.actions_menu>

Controls

:string

Set by the example

selection

Docs

The bulk actions menu, on screen only while something is selected. This one does read the selection, because it has to carry the scope. It belongs in the table's `:header` slot, which renders outside the row comprehension, so a tick re-renders it and nothing else.
Attribute Type Default Description
selection * {:struct, ConnieUI.Selection}
id * :string
Slot Slot attributes Description
inner_block * the menu items, given the selection