Sha256: 4942687e74b22b5b3762b19dca319801266e4a58fe77d1b523b30c6b7ee81e97
Contents?: true
Size: 729 Bytes
Versions: 1
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 content below" } %> <% end %> <% end %> <% dialog.with_confirmation_check_box_content(check_box_text) %> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
openproject-primer_view_components-0.51.0 | previews/primer/open_project/danger_confirmation_dialog_preview/playground.html.erb |