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

Copy Markdown View Source

Unarchive action type - renders a restore button for archived records.

Usage

row_actions do
  action :unarchive, type: :unarchive
  action :restore, type: :unarchive, confirm: "Restore this item?"
end

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