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
Functions
This macro includes the helper functions for pagination
Link to this section Functions
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)