Incant.Table.Action (Incant v0.1.1)

Copy Markdown View Source

Metadata for a table action.

Actions are semantic commands. A table can expose row actions, bulk actions, and page actions; adapters decide whether they render as buttons, menus, command palettes, drawers, or other UI primitives.

Summary

Functions

Returns whether a row action currently applies to a row.

Types

scope()

@type scope() :: :row | :bulk | :page

t()

@type t() :: %Incant.Table.Action{name: atom(), opts: keyword(), scope: scope()}

Functions

available?(action, row, context \\ %{})

@spec available?(t() | map(), term(), map()) :: boolean()

Returns whether a row action currently applies to a row.