ExTeal.ActionResponse (ExTeal v0.21.0) View Source

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

Link to this section 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.

Link to this section Types

Specs

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

Link to this section Functions

Specs

download(String.t()) :: t()

Download a file at a specific url

Specs

error(String.t()) :: t()

Display a custom 'error' message.

Specs

push(String.t()) :: t()

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

Specs

redirect(String.t()) :: t()

Redirect the user to a url

Specs

success(String.t()) :: t()

Display a custom 'success' message.