PhoenixGenApiTui.Views.FunctionDetail (phoenix_gen_api_tui v0.4.0)

Copy Markdown View Source

Overlay view showing full details for a selected function config.

Summary

Functions

Renders a centered overlay with full function config details.

Functions

render(fun, area)

@spec render(
  %PhoenixGenApi.Structs.FunConfig{
    after_execute: term(),
    arg_orders: term(),
    arg_types: term(),
    before_execute: term(),
    check_permission: term(),
    choose_node_mode: term(),
    disabled: term(),
    hook_timeout: term(),
    mfa: term(),
    nodes: term(),
    permission_callback: term(),
    request_info: term(),
    request_type: term(),
    response_type: term(),
    retry: term(),
    service: term(),
    timeout: term(),
    version: term()
  }
  | nil,
  ExRatatui.Layout.Rect.t()
) :: [term()]

Renders a centered overlay with full function config details.

Shows all FunConfig fields: MFA, arg_types, timeout, permission, retry, hooks, nodes, etc. The overlay is rendered on top of the existing layout and dismissed with Esc.

Returns a [{%Clear{}, rect}, {%Paragraph{}, rect}] pair — the clear widget resets the area before the detail overlay is drawn.