Sha256: cfa9f97509d0bf24d19dea6e152c0728c1811f66a65b1c7d1f5a1cd535be73bd
Contents?: true
Size: 964 Bytes
Versions: 22
Compression:
Stored size: 964 Bytes
Contents
<% subject_id = SecureRandom.hex %> <%= render(Primer::Alpha::SelectPanel.new( data: { interaction_subject: subject_id }, select_variant: :single, fetch_strategy: :local, open_on_load: open_on_load )) do |panel| %> <% panel.with_show_button { "Choose item" } %> <% panel.with_item(label: "Item 1", item_id: :item1, content_arguments: { data: { value: 1 } }) %> <% panel.with_item(label: "Item 2", item_id: :item2, content_arguments: { data: { value: 2 } }) %> <% panel.with_item(label: "Item 3", item_id: :item3, content_arguments: { data: { value: 3 } }) %> <% panel.with_item(label: "Item 4", item_id: :item4, content_arguments: { data: { value: 4 } }) %> <% panel.with_item(label: "Disabled", disabled: true, item_id: :disabled) %> <% panel.with_footer(show_divider: true) do %> I'm a footer! <% end %> <% end %> <%= render partial: "primer/alpha/select_panel_preview/interaction_subject_js", locals: { subject_id: subject_id } %>
Version data entries
22 entries across 22 versions & 2 rubygems