Releases: woylie/flop_phoenix
Releases · woylie/flop_phoenix
0.22.9
0.22.8
Added
- Support
:col_class
attr on:col
and:action
slots in addition to:col_style
.
Changed
- Don't render empty
style
attributes oncol
elements incolgroup
.
Fixed
- The page range calculation in the
Flop.Phoenix.pagination/1
was incorrect
towards the last pages.
0.22.7
0.22.6
0.22.5
0.22.4
0.22.3
0.22.2
0.22.1
0.22.0
Added
- Added
directions
attribute to thecol
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
andth_wrapper_attrs
attributes to thecol
slot
of the table component. - Added
thead_th_attrs
attribute to theaction
slot of the table component.
Changed
- Renamed
attrs
mattribute on thecol
andaction
slots of the table
component totbody_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>