MishkaGervaz.Table.Types.Action.Destroy (MishkaGervaz v0.0.1-alpha.3)

Copy Markdown View Source

Destroy action type - renders a delete button with confirmation.

Used for delete actions that destroy a record.

Usage

row_actions do
  action :delete, type: :destroy
  action :remove, type: :destroy, confirm: "Delete this item permanently?"
end

See MishkaGervaz.Table.Types.Action (registry), MishkaGervaz.Table.Behaviours.ActionType, MishkaGervaz.Table.Entities.RowAction, and MishkaGervaz.Table.Entities.BulkAction.