Summary

Functions

Transform the row action after DSL compilation.

Types

action_type()

@type action_type() ::
  :link
  | :modal
  | :event
  | :edit
  | :destroy
  | :update
  | :accordion
  | :unarchive
  | :permanent_destroy
  | :row_click

t()

@type t() :: %MishkaGervaz.Table.Entities.RowAction{
  __identifier__: term(),
  __spark_metadata__: map() | nil,
  action: atom() | {atom(), atom()} | nil,
  confirm: String.t() | (map() -> String.t()) | nil,
  event: atom() | String.t() | nil,
  js: (map() -> Phoenix.LiveView.JS.t()) | nil,
  name: atom(),
  path: String.t() | (map() -> String.t()) | nil,
  payload: (map() -> map()) | nil,
  render:
    (map() -> any())
    | (map(), map() -> any())
    | (map(), map(), any() -> any())
    | nil,
  restricted: boolean(),
  type: action_type(),
  type_module: module() | nil,
  ui: MishkaGervaz.Table.Entities.RowAction.Ui.t() | nil,
  visible: boolean() | :active | :archived | (map(), map() -> boolean())
}

Functions

transform(action)

Transform the row action after DSL compilation.