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-8.0.0.beta6 app/components/blacklight/constraint_layout_component.rb
blacklight-8.0.0.beta5 app/components/blacklight/constraint_layout_component.rb
blacklight-7.33.1 app/components/blacklight/constraint_layout_component.rb
blacklight-8.0.0.beta4 app/components/blacklight/constraint_layout_component.rb
blacklight-8.0.0.beta3 app/components/blacklight/constraint_layout_component.rb
blacklight-8.0.0.beta2 app/components/blacklight/constraint_layout_component.rb
blacklight-8.0.0.beta1 app/components/blacklight/constraint_layout_component.rb
blacklight-7.33.0 app/components/blacklight/constraint_layout_component.rb
blacklight-7.32.0 app/components/blacklight/constraint_layout_component.rb
blacklight-7.31.0 app/components/blacklight/constraint_layout_component.rb
blacklight-7.30.0 app/components/blacklight/constraint_layout_component.rb
blacklight-7.29.0 app/components/blacklight/constraint_layout_component.rb
blacklight-7.28.0 app/components/blacklight/constraint_layout_component.rb
blacklight-7.27.1 app/components/blacklight/constraint_layout_component.rb
blacklight-7.27.0 app/components/blacklight/constraint_layout_component.rb
blacklight-7.26.1 app/components/blacklight/constraint_layout_component.rb
blacklight-7.26.0 app/components/blacklight/constraint_layout_component.rb
blacklight-7.25.3 app/components/blacklight/constraint_layout_component.rb
blacklight-7.25.2 app/components/blacklight/constraint_layout_component.rb
blacklight-7.25.1 app/components/blacklight/constraint_layout_component.rb