Sha256: 9b8f6f5b18b011b0d130b3142deb3ccca4f02d3a9b5ac9f8073f1c5ac849a9e7

Contents?: true

Size: 375 Bytes

Versions: 2

Compression:

Stored size: 375 Bytes

Contents

# frozen_string_literal: true

class SolidusAdmin::UI::ThumbnailWithCaption::Component < SolidusAdmin::BaseComponent
  attr_reader :icon, :caption, :detail

  def initialize(icon: "question-line", caption: "", detail: nil)
    @icon = icon
    @caption = caption
    @detail = detail
  end

  def icon_thumbnail
    render component("ui/thumbnail").new(icon: icon)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
solidus_admin-0.3.1 app/components/solidus_admin/ui/thumbnail_with_caption/component.rb
solidus_admin-0.3.0 app/components/solidus_admin/ui/thumbnail_with_caption/component.rb