Sha256: 488001d8b3c4e19d52fd1547020b0c244aec566126ec4dd92940d98c3406a5f8
Contents?: true
Size: 1.13 KB
Versions: 46
Compression:
Stored size: 1.13 KB
Contents
<% subject_id = SecureRandom.hex %> <%= form_with(url: generic_form_submission_path(format: route_format)) do |builder| %> <%= render(Primer::Alpha::SelectPanel.new( data: { interaction_subject: subject_id }, select_variant: :multiple, fetch_strategy: :local, open_on_load: open_on_load, form_arguments: { name: :item, builder: builder } )) do |panel| %> <% panel.with_show_button { "Panel" } %> <% panel.with_item(label: "Item 1", content_arguments: { data: { value: "item1" } }, active: true) %> <% panel.with_item(label: "Item 2", content_arguments: { data: { value: "item2" } }) %> <% panel.with_item(label: "Item 3", content_arguments: { data: { value: "item3" } }) %> <% panel.with_item(label: "Item 4", content_arguments: { data: { value: "item4" } }) %> <% panel.with_footer(show_divider: true) do %> I'm a footer! <% end %> <% end %> <hr> <%= render(Primer::Beta::Button.new(type: :submit, scheme: :primary)) do %> Submit <% end %> <% 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