Class: SolidusAdmin::UI::Forms::Search::Result::Component

Inherits:
BaseComponent
  • Object
show all
Defined in:
app/components/solidus_admin/ui/forms/search/result/component.rb

Instance Method Summary collapse

Instance Method Details

#callObject



4
5
6
7
8
9
10
11
# File 'app/components/solidus_admin/ui/forms/search/result/component.rb', line 4

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