Sha256: 3ded04a4dcabbe352c8fd254a0557e2185855ff7a7c998257ffc58314aba8c89
Contents?: true
Size: 729 Bytes
Versions: 4
Compression:
Stored size: 729 Bytes
Contents
<%= render(Primer::OpenProject::DangerConfirmationDialog.new(id: "my-dialog")) do |dialog| %> <% dialog.with_show_button { "Click me" } %> <% dialog.with_confirmation_message(icon_arguments: { icon: icon, color: icon_color }) do |message| %> <% message.with_heading(tag: :h2).with_content("Proceed with danger?") %> <% message.with_description_content("This action is not reversible and may cause permanent damage.") if show_description %> <% end %> <% if show_additional_details %> <% dialog.with_additional_details do %> <%= render(Primer::Alpha::Banner.new) { "Some additional details below" } %> <% end %> <% end %> <% dialog.with_confirmation_check_box_content(check_box_text) %> <% end %>
Version data entries
4 entries across 4 versions & 1 rubygems