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.0.0.beta.9 app/components/lookbook/filter/component.rb
lookbook-2.0.0.beta.8 app/components/lookbook/filter/component.rb
lookbook-2.0.0.beta.7 app/components/lookbook/filter/component.rb
lookbook-2.0.0.beta.6 app/components/lookbook/filter/component.rb
lookbook-2.0.0.beta.5 app/components/lookbook/filter/component.rb
lookbook-2.0.0.beta.4 app/components/lookbook/filter/component.rb
lookbook-2.0.0.beta.3 app/components/lookbook/filter/component.rb
lookbook-2.0.0.beta.2 app/components/lookbook/filter/component.rb
lookbook-1.5.3 app/components/lookbook/filter/component.rb
lookbook-2.0.0.beta.1 app/components/lookbook/filter/component.rb
lookbook-1.5.2 app/components/lookbook/filter/component.rb
lookbook-2.0.0.beta.0 app/components/lookbook/filter/component.rb
lookbook-1.5.1 app/components/lookbook/filter/component.rb
lookbook-1.5.0 app/components/lookbook/filter/component.rb
lookbook-1.4.5 app/components/lookbook/filter/component.rb
lookbook-1.4.4 app/components/lookbook/filter/component.rb
lookbook-1.4.3 app/components/lookbook/filter/component.rb
lookbook-1.4.2 app/components/lookbook/filter/component.rb
lookbook-1.4.1 app/components/lookbook/filter/component.rb
lookbook-1.4.0 app/components/lookbook/filter/component.rb