Torch.PaginationView.prev_link
You're seeing just the function
prev_link
, go back to Torch.PaginationView module for more information.
Generates a "< Prev" link to the previous page of results. The link is only returned if there is a previous page.
Examples
iex> prev_link(%Plug.Conn{params: %{}}, 2) |> safe_to_string()
"<a href=\"?page=1\">< Prev</a>"
If the current page is 1, returns nil
:
iex> prev_link(%Plug.Conn{params: %{}}, 1)
nil