Event action type - renders a button that triggers a LiveView event.
Used for custom actions that need to send events to the component/parent.
Usage
row_actions do
action :approve, type: :event, event: "approve_record"
action :archive, type: :event, confirm: "Are you sure?"
endPayload
By default, sends %{id: record.id}. Use :payload for custom data:
action :process, type: :event, payload: fn record ->
%{id: record.id, status: record.status}
endSee MishkaGervaz.Table.Types.Action (registry),
MishkaGervaz.Table.Behaviours.ActionType,
MishkaGervaz.Table.Entities.RowAction, and
MishkaGervaz.Table.Entities.BulkAction.