Sha256: e2910ff301cbaaf5fe00c8e771c125ea75dd88eeda2384d21aa66005cac83cb1

Contents?: true

Size: 422 Bytes

Versions: 5

Compression:

Stored size: 422 Bytes

Contents

# frozen_string_literal: true

class SolidusAdmin::UI::Forms::Search::Result::Component < SolidusAdmin::BaseComponent
  def call
    tag.div(
      content,
      class: "rounded p-2 hover:bg-gray-25 aria-selected:bg-gray-25 cursor-pointer",
      "data-#{component('ui/forms/search').stimulus_id}-target": "result",
      "data-action": "click->#{component('ui/forms/search').stimulus_id}#clickedResult",
    )
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
solidus_admin-0.3.2 app/components/solidus_admin/ui/forms/search/result/component.rb
solidus_admin-0.3.1 app/components/solidus_admin/ui/forms/search/result/component.rb
solidus_admin-0.3.0 app/components/solidus_admin/ui/forms/search/result/component.rb
solidus_admin-0.2.0 app/components/solidus_admin/ui/forms/search/result/component.rb
solidus_admin-0.1.0 app/components/solidus_admin/ui/forms/search/result/component.rb