From 322d12101e0ebec0468e5ce054c60a9b5ec11e65 Mon Sep 17 00:00:00 2001 From: Oliver Switzer Date: Thu, 28 Sep 2023 11:32:23 -0400 Subject: [PATCH] Flop.Phoenix.pagination change * add ability to specify that you do not wanter to render next and previous links --- lib/flop_phoenix.ex | 5 ++++- lib/flop_phoenix/pagination.ex | 1 + test/flop_phoenix_test.exs | 19 +++++++++++++++++-- 3 files changed, 22 insertions(+), 3 deletions(-) diff --git a/lib/flop_phoenix.ex b/lib/flop_phoenix.ex index 276d31d..b06bb1c 100644 --- a/lib/flop_phoenix.ex +++ b/lib/flop_phoenix.ex @@ -186,7 +186,8 @@ defmodule Flop.Phoenix do Default: `#{inspect(Pagination.default_opts()[:wrapper_attrs])}`. """ @type pagination_option :: - {:current_link_attrs, keyword} + {:render_next_and_previous_links, boolean()} + | {:current_link_attrs, keyword} | {:disabled_class, String.t()} | {:ellipsis_attrs, keyword} | {:ellipsis_content, Phoenix.HTML.safe() | binary} @@ -429,6 +430,7 @@ defmodule Flop.Phoenix do ~H"""