Rumamge.Phoenix v2.0.0 Rummage.Phoenix.PaginateView View Source

View Helper for Pagination in Rummage for bootstrap views.

Usage:

defmodule MyApp.ProductView do
  use MyApp.Web, :view
  use Rummage.Phoenix.View, only: [:paginate]
end

OR

defmodule MyApp.ProductView do
  use MyApp.Web, :view
  use Rummage.Phoenix.View
end

Link to this section Summary

Link to this section Functions

Link to this function

all_page_link(conn, rummage, opts)

View Source
Link to this function

pagination_link(conn, rummage, opts \\ [])

View Source

This macro includes the helper functions for pagination

Provides helper functions pagination_link/3 for creating pagination links in an html.eex file of using Phoenix.

Usage: Just add the following code in the index template. Make sure that you're passing rummage from the controller. Please look at the README for more details

pagination_link(@conn, @rummage)
Link to this function

pagination_with_all_link(conn, rummage, opts \\ [])

View Source