# `Alternera.Resource.Extension.Action`
[🔗](https://github.com/10e-ab/alternera-sdk/blob/v0.9.0/alternera_resource_sdk/lib/alternera/resource/extension/action.ex#L1)

`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.

# `on`

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

# `t`

```elixir
@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
}
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
