Sha256: bb49313edcde46ae4e529762b18aed2254db45154edb66596152335596aec1e5

Contents?: true

Size: 584 Bytes

Versions: 47

Compression:

Stored size: 584 Bytes

Contents

<%= render component_tag(x: {
  data: x_data("appImagePickerButton", {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

47 entries across 47 versions & 1 rubygems

Version Path
coveragebook_components-0.12.2 app/components/coco/app/elements/image_picker_button/image_picker_button.html.erb
coveragebook_components-0.12.1 app/components/coco/app/elements/image_picker_button/image_picker_button.html.erb
coveragebook_components-0.12.0 app/components/coco/app/elements/image_picker_button/image_picker_button.html.erb
coveragebook_components-0.11.0 app/components/coco/app/elements/image_picker_button/image_picker_button.html.erb
coveragebook_components-0.10.1.beta.2 app/components/coco/app/elements/image_picker_button/image_picker_button.html.erb
coveragebook_components-0.10.1.beta.1 app/components/coco/app/elements/image_picker_button/image_picker_button.html.erb
coveragebook_components-0.10.1.beta.0 app/components/coco/app/elements/image_picker_button/image_picker_button.html.erb
coveragebook_components-0.10.0 app/components/coco/app/elements/image_picker_button/image_picker_button.html.erb
coveragebook_components-0.9.1 app/components/coco/app/elements/image_picker_button/image_picker_button.html.erb
coveragebook_components-0.9.0 app/components/coco/app/elements/image_picker_button/image_picker_button.html.erb
coveragebook_components-0.8.9 app/components/coco/app/elements/image_picker_button/image_picker_button.html.erb
coveragebook_components-0.8.8 app/components/coco/app/elements/image_picker_button/image_picker_button.html.erb
coveragebook_components-0.8.7 app/components/coco/app/elements/image_picker_button/image_picker_button.html.erb
coveragebook_components-0.8.6 app/components/coco/app/elements/image_picker_button/image_picker_button.html.erb
coveragebook_components-0.8.5 app/components/coco/app/elements/image_picker_button/image_picker_button.html.erb
coveragebook_components-0.8.4 app/components/coco/app/elements/image_picker_button/image_picker_button.html.erb
coveragebook_components-0.8.3 app/components/coco/app/elements/image_picker_button/image_picker_button.html.erb
coveragebook_components-0.8.2 app/components/coco/app/elements/image_picker_button/image_picker_button.html.erb
coveragebook_components-0.8.1 app/components/coco/app/elements/image_picker_button/image_picker_button.html.erb
coveragebook_components-0.8.0 app/components/coco/app/elements/image_picker_button/image_picker_button.html.erb