Sha256: e5c80e495d097aee4916857a3fd9c616c282c10c4adc00f2e310f41ac427e0cf

Contents?: true

Size: 678 Bytes

Versions: 18

Compression:

Stored size: 678 Bytes

Contents

<% subject_id = SecureRandom.hex %>

<%= render(Primer::Alpha::SelectPanel.new(
  data: { interaction_subject: subject_id },
  # passing a uuid here causes the request to succeed the first time and fail all subsequent times
  # set show_results to false to simulate an initial load with no items
  src: select_panel_items_path(show_results: show_results.to_s, fail: "true", uuid: SecureRandom.uuid),
  fetch_strategy: :remote,
  open_on_load: open_on_load,
  **system_arguments
)) do |panel| %>
  <% panel.with_show_button { "Sci-fi equipment" } %>
<% end %>

<%= render partial: "primer/alpha/select_panel_preview/interaction_subject_js", locals: { subject_id: subject_id } %>

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
primer_view_components-0.36.5 previews/primer/alpha/select_panel_preview/remote_fetch_filter_failure.html.erb
openproject-primer_view_components-0.52.2 previews/primer/alpha/select_panel_preview/remote_fetch_filter_failure.html.erb
primer_view_components-0.36.4 previews/primer/alpha/select_panel_preview/remote_fetch_filter_failure.html.erb
openproject-primer_view_components-0.52.1 previews/primer/alpha/select_panel_preview/remote_fetch_filter_failure.html.erb
openproject-primer_view_components-0.52.0 previews/primer/alpha/select_panel_preview/remote_fetch_filter_failure.html.erb
primer_view_components-0.36.3 previews/primer/alpha/select_panel_preview/remote_fetch_filter_failure.html.erb
openproject-primer_view_components-0.51.0 previews/primer/alpha/select_panel_preview/remote_fetch_filter_failure.html.erb
primer_view_components-0.36.2 previews/primer/alpha/select_panel_preview/remote_fetch_filter_failure.html.erb
openproject-primer_view_components-0.50.1 previews/primer/alpha/select_panel_preview/remote_fetch_filter_failure.html.erb
openproject-primer_view_components-0.50.0 previews/primer/alpha/select_panel_preview/remote_fetch_filter_failure.html.erb
primer_view_components-0.36.1 previews/primer/alpha/select_panel_preview/remote_fetch_filter_failure.html.erb
primer_view_components-0.36.0 previews/primer/alpha/select_panel_preview/remote_fetch_filter_failure.html.erb
openproject-primer_view_components-0.49.2 previews/primer/alpha/select_panel_preview/remote_fetch_filter_failure.html.erb
primer_view_components-0.35.2 previews/primer/alpha/select_panel_preview/remote_fetch_filter_failure.html.erb
openproject-primer_view_components-0.49.1 previews/primer/alpha/select_panel_preview/remote_fetch_filter_failure.html.erb
openproject-primer_view_components-0.49.0 previews/primer/alpha/select_panel_preview/remote_fetch_filter_failure.html.erb
primer_view_components-0.35.1 previews/primer/alpha/select_panel_preview/remote_fetch_filter_failure.html.erb
primer_view_components-0.35.0 previews/primer/alpha/select_panel_preview/remote_fetch_filter_failure.html.erb