Sha256: bb4d03e3ef5bed3c07aacfbb766892f255c75b14638e423ff971c63588b770fa
Contents?: true
Size: 916 Bytes
Versions: 2
Compression:
Stored size: 916 Bytes
Contents
<script type="text/javascript"> window.addEventListener('load', function() { document.querySelector('button#alert-item').addEventListener('click', (_e) => { alert('Foo') }); }, false); </script> <%= render(Primer::Alpha::ActionMenu.new) do |component| %> <% component.with_show_button { "Trigger" } %> <% component.with_item(label: "Alert", tag: :button, id: "alert-item", disabled: disable_items) %> <% component.with_item(label: "Navigate", tag: :a, content_arguments: { href: action_menu_landing_path }, disabled: disable_items) %> <% component.with_item(label: "Copy text", tag: :"clipboard-copy", content_arguments: { value: "Text to copy" }, disabled: disable_items) %> <% component.with_item( label: "Submit form", href: action_menu_form_action_path, form_arguments: { name: "foo", value: "bar", method: :post }, disabled: disable_items ) %> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems