Raxol.LiveView (Raxol v2.0.1)

View Source

Phoenix LiveView integration for Raxol.

Brings familiar LiveView patterns to terminal applications, including assigns, events, and lifecycle hooks.

Summary

Functions

Assigns values to the socket, similar to Phoenix LiveView.

Pushes an event to the terminal (for actions like navigation).

Updates an assign using a function.

Functions

assign(socket, assigns)

assign(socket, key, value)

Assigns values to the socket, similar to Phoenix LiveView.

push_event(socket, event, payload \\ %{})

Pushes an event to the terminal (for actions like navigation).

update(socket, key, fun)

Updates an assign using a function.