MishkaGervaz.Table.Types.Action.Link (MishkaGervaz v0.0.1-alpha.2)

Copy Markdown View Source

Link action type - renders a navigation link.

Used for actions like :show_link, :edit_link that navigate to another page.

Route Building

Routes are built from state.static.config[:identity][:route]:

  • :show / :show_link{route}/{id}
  • :edit / :edit_link{route}/{id}/edit

Or use a custom path function:

action :view, type: :link, path: fn record -> "/custom/#{record.id}" end

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