Alternera.Resource.Extension.Action (alternera_resource_sdk v0.9.0)

Copy Markdown View Source

action :id, "Label" in alternera_resource's ui: something a user does to the resource, a record or a selection of records, drawn by the host wherever it fits (Alternera.Resource.UI, kind E). run names an Ash action of the resource; handler a module with handle_action/4 for work that is not one Ash action.

Summary

Types

on()

@type on() :: :resource | :record | :selection

t()

@type t() :: %Alternera.Resource.Extension.Action{
  __identifier__: term(),
  __spark_metadata__: term(),
  arguments: [Alternera.Resource.Extension.Argument.t()],
  confirm: String.t() | nil,
  description: String.t(),
  handler: module() | nil,
  icon: String.t() | nil,
  id: atom(),
  label: String.t(),
  on: on(),
  read_only: boolean(),
  run: atom() | nil,
  visible: {module(), atom()} | nil
}