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-1.3.4 app/components/lookbook/filter/component.rb
lookbook-1.3.3 app/components/lookbook/filter/component.rb
lookbook-1.3.1 app/components/lookbook/filter/component.rb
lookbook-1.3.0 app/components/lookbook/filter/component.rb
lookbook-1.2.1 app/components/lookbook/filter/component.rb
lookbook-1.2.0 app/components/lookbook/filter/component.rb
lookbook-1.1.1 app/components/lookbook/filter/component.rb
lookbook-1.1.0 app/components/lookbook/filter/component.rb
lookbook-1.0.8 app/components/lookbook/filter/component.rb
lookbook-1.0.7 app/components/lookbook/filter/component.rb
lookbook-1.0.6 app/components/lookbook/filter/component.rb
lookbook-1.0.5 app/components/lookbook/filter/component.rb
lookbook-1.0.4 app/components/lookbook/filter/component.rb
lookbook-1.0.3 app/components/lookbook/filter/component.rb
lookbook-1.0.2 app/components/lookbook/filter/component.rb
lookbook-1.0.1 app/components/lookbook/filter/component.rb
lookbook-1.0.0 app/components/lookbook/filter/component.rb
lookbook-1.0.0.rc.3 app/components/lookbook/filter/component.rb
lookbook-1.0.0.rc.2 app/components/lookbook/filter/component.rb
lookbook-1.0.0.rc.1 app/components/lookbook/filter/component.rb