This commit is contained in:
parent
1b06f885bf
commit
c3e95ca711
1 changed files with 3 additions and 3 deletions
|
|
@ -511,9 +511,9 @@ defmodule MvWeb.CoreComponents do
|
|||
<td
|
||||
:for={col <- @col}
|
||||
phx-click={
|
||||
(col[:col_click] && col[:col_click].(@row_item.(row))) ||
|
||||
(@row_click && @row_click.(row))
|
||||
}
|
||||
(col[:col_click] && col[:col_click].(@row_item.(row))) ||
|
||||
(@row_click && @row_click.(row))
|
||||
}
|
||||
class={["max-w-xs truncate", (col[:col_click] || @row_click) && "hover:cursor-pointer"]}
|
||||
>
|
||||
{render_slot(col, @row_item.(row))}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue