Skip to content

Commit

Permalink
Disable a tag when collapsible button is clicked
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomm1128 committed Dec 5, 2024
1 parent bcc10b3 commit c1eb677
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@
<%= pb_rails("table/table_header", props: { tag: "div", id: item[:accessor], classname: object.th_classname, sort_menu: item[:sort_menu] }) do %>
<%= pb_rails("flex", props:{ align: "center", justify: index.zero? ? "start" : "end", text_align: "end" }) do %>
<% if index.zero? && (object.enable_toggle_expansion == "header" || object.enable_toggle_expansion == "all") %>
<button class="gray-icon toggle-all-icon" onclick="expandAllRows(this)">
<%= pb_rails("icon", props: { icon: "arrows-from-line", cursor: "pointer", fixed_width: true, padding_right: "xs" }) %>
<button
class="gray-icon toggle-all-icon"
onclick="expandAllRows(this); event.preventDefault();">
<%= pb_rails("icon", props: { icon: "arrows-from-line", cursor: "pointer", fixed_width: true, padding_right: "xs" }) %>
</button>
<% end %>
<%= item[:label] %>
<% end %>
<% end %>
<% end %>
<% end %>
<% end %>
<% end %>

0 comments on commit c1eb677

Please sign in to comment.