Skip to content

Commit

Permalink
update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
woylie committed Sep 26, 2023
1 parent bef307e commit e52830e
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,32 @@

## Unreleased

### Added

- 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` attribute 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:

```diff
<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>
```

## [0.21.2] - 2023-09-26

### Changed
Expand Down

0 comments on commit e52830e

Please sign in to comment.