Sha256: defa0de60eedacbf579a17f2dd2f95aff9c9cc38b5cb51476f745120c226dfef

Contents?: true

Size: 581 Bytes

Versions: 25

Compression:

Stored size: 581 Bytes

Contents

<%= render component_tag(x: {
  data: x_data("imagePickerButton", {src: src}),
  "@dropdown:mount": "onDropdownMount",
  effect: "$dispatch('image-picker:change', {image: selectedImage})"
}) do %>
  <%= render button do |btn| %>
  
    <% btn.with_dropdown do %>    
      <div
        @image-picker:select="$parent.setSelectedImage($event.detail.image)"
        @image-picker:clear="$parent.clearSelectedImage"
        x-cloak>
        <div data-role="image-picker">
          <%= picker %>
        </div>
      </div>
    <% end %>
  
    <%= button_text %>
  <% end %>
<% end %>

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
coveragebook_components-0.19.8 app/components/coco/buttons/image_picker_button/image_picker_button.html.erb
coveragebook_components-0.19.7 app/components/coco/buttons/image_picker_button/image_picker_button.html.erb
coveragebook_components-0.19.6 app/components/coco/buttons/image_picker_button/image_picker_button.html.erb
coveragebook_components-0.19.5 app/components/coco/buttons/image_picker_button/image_picker_button.html.erb
coveragebook_components-0.19.4 app/components/coco/buttons/image_picker_button/image_picker_button.html.erb
coveragebook_components-0.19.3 app/components/coco/buttons/image_picker_button/image_picker_button.html.erb
coveragebook_components-0.19.2 app/components/coco/buttons/image_picker_button/image_picker_button.html.erb
coveragebook_components-0.19.1 app/components/coco/buttons/image_picker_button/image_picker_button.html.erb
coveragebook_components-0.19.0 app/components/coco/buttons/image_picker_button/image_picker_button.html.erb
coveragebook_components-0.18.8 app/components/coco/buttons/image_picker_button/image_picker_button.html.erb
coveragebook_components-0.18.7 app/components/coco/buttons/image_picker_button/image_picker_button.html.erb
coveragebook_components-0.18.0 app/components/coco/buttons/image_picker_button/image_picker_button.html.erb
coveragebook_components-0.17.7 app/components/coco/buttons/image_picker_button/image_picker_button.html.erb
coveragebook_components-0.17.6 app/components/coco/buttons/image_picker_button/image_picker_button.html.erb
coveragebook_components-0.17.5 app/components/coco/buttons/image_picker_button/image_picker_button.html.erb
coveragebook_components-0.17.4 app/components/coco/buttons/image_picker_button/image_picker_button.html.erb
coveragebook_components-0.17.3 app/components/coco/buttons/image_picker_button/image_picker_button.html.erb
coveragebook_components-0.17.2 app/components/coco/buttons/image_picker_button/image_picker_button.html.erb
coveragebook_components-0.17.1 app/components/coco/buttons/image_picker_button/image_picker_button.html.erb
coveragebook_components-0.17.0 app/components/coco/buttons/image_picker_button/image_picker_button.html.erb