<:col :let={r} label="Name" label_class="text-sky-600" class="align-top">
<%= r.name %>
</:col>
<:col :let={r} label="Portrayal" class="align-top">
<%= r.portrayal %>
</:col>
<:col :let={r} label="" class="align-top">
<button class="btn" phx-click={JS.toggle_class("hidden", to: "tr:has(#description-#{Map.get(r, :id)})")}>
Expand
</button>
</:col>
<:expand :let={r} class={["align-top", "hidden"]}>
<pre id={"description-#{Map.get(r, :id)}"} class="p-4 whitespace-break-spaces">
<%= r.description %>
</pre>
</:expand>
|