View Source AdminElf.ActionHelpers (admin_elf v1.1.0)

Summary

Types

@type action() :: %{
  name: atom(),
  fun: (... -> any()),
  label: String.t(),
  inputs: [AdminElf.InputHelpers.input()]
}

Functions

Link to this function

action(name, fun, opts \\ [])

View Source
@spec action(atom(), (... -> any()), keyword()) :: action()