Sha256: 857f39f42501133628a2be9840b244314af74734a2e75e1ce4026bd3ad7f831a

Contents?: true

Size: 370 Bytes

Versions: 5

Compression:

Stored size: 370 Bytes

Contents

# frozen_string_literal: true

class SolidusAdmin::UI::Forms::SearchField::Component < SolidusAdmin::BaseComponent
  def initialize(**attributes)
    @attributes = attributes
    @attributes[:type] ||= :search
    @attributes[:class] = "search-cancel:appearance-none peer !px-10 #{@attributes[:class]}"
    @attributes[:"data-#{stimulus_id}-target"] = "input"
  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_field/component.rb
solidus_admin-0.3.1 app/components/solidus_admin/ui/forms/search_field/component.rb
solidus_admin-0.3.0 app/components/solidus_admin/ui/forms/search_field/component.rb
solidus_admin-0.2.0 app/components/solidus_admin/ui/forms/search_field/component.rb
solidus_admin-0.1.0 app/components/solidus_admin/ui/forms/search_field/component.rb