Skip to content

Releases: woylie/flop_phoenix

0.22.9

04 May 04:05
9323c81
Compare
Choose a tag to compare

Added

  • Added :pagination_list_item_attrs option to Flop.Phoenix.pagination/1.

0.22.8

23 Mar 11:51
d5ca29b
Compare
Choose a tag to compare

Added

  • Support :col_class attr on :col and :action slots in addition to :col_style.

Changed

  • Don't render empty style attributes on col elements in colgroup.

Fixed

  • The page range calculation in the Flop.Phoenix.pagination/1 was incorrect
    towards the last pages.

0.22.7

02 Mar 01:27
3f29749
Compare
Choose a tag to compare

Changed

  • Loosen version requirement for phoenix_html.

Fixed

  • Warning when wrapping table component and passing on :col slot as attribute.

0.22.6

14 Jan 01:24
12e49a2
Compare
Choose a tag to compare

Changed

  • Support Flop 0.25.0.
  • Update documentation examples for filter forms.

0.22.5

24 Dec 23:59
20c4fce
Compare
Choose a tag to compare

Changed

  • Requires phoenix_html ~> 4.0.

0.22.4

18 Nov 04:12
5baf001
Compare
Choose a tag to compare

Fixed

  • Don't render li element if a pagination link is not rendered.

0.22.3

14 Nov 11:26
ab701a6
Compare
Choose a tag to compare

Changed

  • Support Flop ~> 0.24.0.

0.22.2

19 Oct 21:27
7da3392
Compare
Choose a tag to compare

[0.22.2] - 2023-10-19

Fixed

  • Numbered pagination links were not wrapped in li elements.

0.22.1

28 Sep 08:27
12e6c15
Compare
Choose a tag to compare

Changed

  • Allow to use t:Phoenix.HTML.safe/0 as a label attribute in table headers.

0.22.0

26 Sep 01:00
1e2e576
Compare
Choose a tag to compare

Added

  • Added directions attribute to the col slot of the table component. This
    allows you to override the default sort directions, e.g. to specify
    nulls-first or nulls-last.
  • Added thead_th_attrs and th_wrapper_attrs attributes to the col slot
    of the table component.
  • Added thead_th_attrs attribute to the action slot of the table component.

Changed

  • Renamed attrs mattribute on the col and action slots of the table
    component to tbody_td_attrs in order to match the naming of the global
    table options.

Upgrade guide

Rename the attrs attribute to tbody_td_attrs in both the col slot and the
action slot:

<Flop.Phoenix.table items={@pets} meta={@meta} path={~p"/pets"}>
-  <:col :let={p} attrs={[class="my-class"]}><%= p.id %></:col>
-  <:action :let={p} attrs={[class="my-class"]}>button</:col>
+  <:col :let={p} tbody_td_attrs={[class="my-class"]}><%= p.id %></:col>
+  <:action :let={p} tbody_td_attrs={[class="my-class"]}>button</:col>
</Flop.Phoenix.table>