View Source ExTeal.ActionResponse (ExTeal v0.28.1)

Used to return the result of an action and specifies how the ux should respond

Summary

Functions

Download a file at a specific url

Display a custom 'error' message.

Push the user to a new location in the vue app.

Redirect the user to a url

Display a custom 'success' message.

Types

@type t() :: %ExTeal.ActionResponse{
  message: term(),
  path: term(),
  type: term(),
  url: term()
}

Functions

@spec download(String.t()) :: t()

Download a file at a specific url

@spec error(String.t()) :: t()

Display a custom 'error' message.

@spec push(String.t()) :: t()

Push the user to a new location in the vue app.

@spec redirect(String.t()) :: t()

Redirect the user to a url

@spec success(String.t()) :: t()

Display a custom 'success' message.