Sha256: e9c7f326d3a6a6dcbc0a5948bbfa3eb0861b7f5924d35dec335c25fc6bddea31

Contents?: true

Size: 414 Bytes

Versions: 41

Compression:

Stored size: 414 Bytes

Contents

# frozen_string_literal: true

module Blacklight
  class ConstraintLayoutComponent < Blacklight::Component
    def initialize(value:, label: nil, remove_path: nil, classes: nil, search_state: nil)
      @value = value
      @label = label
      @remove_path = remove_path
      @classes = Array(classes).join(' ')
      @search_state = search_state
    end

    def render?
      @value.present?
    end
  end
end

Version data entries

41 entries across 40 versions & 2 rubygems

Version Path
blacklight-7.40.0 app/components/blacklight/constraint_layout_component.rb
blacklight-7.39.0 app/components/blacklight/constraint_layout_component.rb
blacklight-7.38.0 app/components/blacklight/constraint_layout_component.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/blacklight-8.3.0/app/components/blacklight/constraint_layout_component.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/blacklight-7.37.0/app/components/blacklight/constraint_layout_component.rb
blacklight-8.3.0 app/components/blacklight/constraint_layout_component.rb
blacklight-8.2.2 app/components/blacklight/constraint_layout_component.rb
blacklight-8.2.1 app/components/blacklight/constraint_layout_component.rb
blacklight-8.2.0 app/components/blacklight/constraint_layout_component.rb
blacklight-7.37.0 app/components/blacklight/constraint_layout_component.rb
blacklight-7.36.2 app/components/blacklight/constraint_layout_component.rb
blacklight-7.36.1 app/components/blacklight/constraint_layout_component.rb
blacklight-7.36.0 app/components/blacklight/constraint_layout_component.rb
blacklight-7.35.0 app/components/blacklight/constraint_layout_component.rb
blacklight-8.1.0 app/components/blacklight/constraint_layout_component.rb
blacklight-7.34.0 app/components/blacklight/constraint_layout_component.rb
blacklight-8.0.1 app/components/blacklight/constraint_layout_component.rb
blacklight-8.0.0 app/components/blacklight/constraint_layout_component.rb
blacklight-8.0.0.beta8 app/components/blacklight/constraint_layout_component.rb
blacklight-8.0.0.beta7 app/components/blacklight/constraint_layout_component.rb