Sha256: 2f6c91e5bc00b298c9a5e838d731e6fdb342e1f196c3ad5855c011d51d606190

Contents?: true

Size: 798 Bytes

Versions: 46

Compression:

Stored size: 798 Bytes

Contents

<% subject_id = SecureRandom.hex %>

<%= render(Primer::Alpha::SelectPanel.new(
  data: { interaction_subject: subject_id },
  id: "with_avatar_items",
  title: "Select users",
  select_variant: :single,
  fetch_strategy: :local,
  dynamic_label: true,
  dynamic_label_prefix: "Item",
  dynamic_aria_label_prefix: "Your item",
  open_on_load: open_on_load
)) do |panel| %>
  <% panel.with_show_button { "Choose item" } %>

  <% panel.with_item(label: "Item 1") %>
  <% panel.with_item(label: "Item 2") %>
  <% panel.with_item(label: "Item 3") %>
  <% panel.with_item(label: "Item 4") %>
  <% panel.with_item(label: "Item 5") %>
  <% panel.with_item(label: "Item 6") %>
<% end %>

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

Version data entries

46 entries across 46 versions & 2 rubygems

Version Path
openproject-primer_view_components-0.48.0 previews/primer/alpha/select_panel_preview/with_dynamic_label_and_aria_prefix.html.erb
openproject-primer_view_components-0.47.1 previews/primer/alpha/select_panel_preview/with_dynamic_label_and_aria_prefix.html.erb
openproject-primer_view_components-0.47.0 previews/primer/alpha/select_panel_preview/with_dynamic_label_and_aria_prefix.html.erb
primer_view_components-0.34.0 previews/primer/alpha/select_panel_preview/with_dynamic_label_and_aria_prefix.html.erb
openproject-primer_view_components-0.46.1 previews/primer/alpha/select_panel_preview/with_dynamic_label_and_aria_prefix.html.erb
openproject-primer_view_components-0.46.0 previews/primer/alpha/select_panel_preview/with_dynamic_label_and_aria_prefix.html.erb
openproject-primer_view_components-0.45.0 previews/primer/alpha/select_panel_preview/with_dynamic_label_and_aria_prefix.html.erb
openproject-primer_view_components-0.44.3 previews/primer/alpha/select_panel_preview/with_dynamic_label_and_aria_prefix.html.erb
openproject-primer_view_components-0.44.2 previews/primer/alpha/select_panel_preview/with_dynamic_label_and_aria_prefix.html.erb
openproject-primer_view_components-0.44.1 previews/primer/alpha/select_panel_preview/with_dynamic_label_and_aria_prefix.html.erb
primer_view_components-0.33.0 previews/primer/alpha/select_panel_preview/with_dynamic_label_and_aria_prefix.html.erb
openproject-primer_view_components-0.44.0 previews/primer/alpha/select_panel_preview/with_dynamic_label_and_aria_prefix.html.erb
openproject-primer_view_components-0.43.1 previews/primer/alpha/select_panel_preview/with_dynamic_label_and_aria_prefix.html.erb
openproject-primer_view_components-0.43.0 previews/primer/alpha/select_panel_preview/with_dynamic_label_and_aria_prefix.html.erb
primer_view_components-0.32.0 previews/primer/alpha/select_panel_preview/with_dynamic_label_and_aria_prefix.html.erb
openproject-primer_view_components-0.42.0 previews/primer/alpha/select_panel_preview/with_dynamic_label_and_aria_prefix.html.erb
primer_view_components-0.31.0 previews/primer/alpha/select_panel_preview/with_dynamic_label_and_aria_prefix.html.erb
openproject-primer_view_components-0.41.1 previews/primer/alpha/select_panel_preview/with_dynamic_label_and_aria_prefix.html.erb
openproject-primer_view_components-0.41.0 previews/primer/alpha/select_panel_preview/with_dynamic_label_and_aria_prefix.html.erb
openproject-primer_view_components-0.40.0 previews/primer/alpha/select_panel_preview/with_dynamic_label_and_aria_prefix.html.erb