Sha256: 3746bcbd6e441f7f73e51b37fa4349fa36ad107fb6cac38c584fa247c44bf870

Contents?: true

Size: 372 Bytes

Versions: 66

Compression:

Stored size: 372 Bytes

Contents

module Lookbook
  class Filter::Component < Lookbook::BaseComponent
    def initialize(store: nil, placeholder: "Type to filter&hellip;", **html_attrs)
      @model = store.nil? ? "{}" : "#{store}.raw"
      @placeholder = placeholder
      super(alpine_data: store, **html_attrs)
    end

    protected

    def alpine_component
      "filterComponent"
    end
  end
end

Version data entries

66 entries across 66 versions & 1 rubygems

Version Path
lookbook-2.3.4 app/components/lookbook/filter/component.rb
lookbook-2.3.3 app/components/lookbook/filter/component.rb
lookbook-2.3.2 app/components/lookbook/filter/component.rb
lookbook-2.3.0 app/components/lookbook/filter/component.rb
lookbook-2.2.2 app/components/lookbook/filter/component.rb
lookbook-2.2.1 app/components/lookbook/filter/component.rb
lookbook-2.2.0 app/components/lookbook/filter/component.rb
lookbook-2.1.1 app/components/lookbook/filter/component.rb
lookbook-2.1.0 app/components/lookbook/filter/component.rb
lookbook-2.0.5 app/components/lookbook/filter/component.rb
lookbook-2.0.4 app/components/lookbook/filter/component.rb
lookbook-2.0.3 app/components/lookbook/filter/component.rb
lookbook-2.0.2 app/components/lookbook/filter/component.rb
lookbook-2.0.1 app/components/lookbook/filter/component.rb
lookbook-2.0.0 app/components/lookbook/filter/component.rb
lookbook-2.0.0.rc.3 app/components/lookbook/filter/component.rb
lookbook-1.5.5 app/components/lookbook/filter/component.rb
lookbook-1.5.4 app/components/lookbook/filter/component.rb
lookbook-2.0.0.rc.2 app/components/lookbook/filter/component.rb
lookbook-2.0.0.rc.1 app/components/lookbook/filter/component.rb