Skip to content

Commit

Permalink
docs: correct example in docs for rendering multiple slots in a html …
Browse files Browse the repository at this point in the history
…table with render_slot (#3643)
  • Loading branch information
snackycracky authored Jan 19, 2025
1 parent 642a693 commit cde2804
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/phoenix_component.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1062,8 +1062,8 @@ defmodule Phoenix.Component do
def table(assigns) do
~H"""
<table>
<tr :for={col <- @col}>
<th>{col.label}</th>
<tr>
<th :for={col <- @col}>{col.label}</th>
</tr>
<tr :for={row <- @rows}>
<td :for={col <- @col}>{render_slot(col, row)}</td>
Expand Down

0 comments on commit cde2804

Please sign in to comment.