Class: Anchor::Autocomplete::ResultsComponent
- Inherits:
-
Component
- Object
- ViewComponent::Base
- Component
- Anchor::Autocomplete::ResultsComponent
- Defined in:
- app/components/anchor/autocomplete/results_component.rb
Constant Summary collapse
- Result =
Data.define(:text, :value, :data)
Constants included from ViewHelper
Instance Method Summary collapse
-
#initialize(data:, **kwargs) ⇒ ResultsComponent
constructor
A new instance of ResultsComponent.
Methods inherited from Component
Methods included from ViewHelper
#anchor_form_with, #anchor_svg, #deep_blank?, #merge_options, #popover_trigger_attributes
Methods included from FetchOrFallbackHelper
Constructor Details
#initialize(data:, **kwargs) ⇒ ResultsComponent
Returns a new instance of ResultsComponent.
6 7 8 9 10 |
# File 'app/components/anchor/autocomplete/results_component.rb', line 6 def initialize(data:, **kwargs) @data = data super(**kwargs) end |