Sha256: 1bd145e78100c58355bec30a3aa9467eac839ff137ccdf93e7f00dbc67c3cf9b

Contents?: true

Size: 414 Bytes

Versions: 30

Compression:

Stored size: 414 Bytes

Contents

# frozen_string_literal: true

module Blacklight
  class ConstraintLayoutComponent < ::ViewComponent::Base
    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

30 entries across 30 versions & 1 rubygems

Version Path
blacklight-7.24.0 app/components/blacklight/constraint_layout_component.rb
blacklight-7.23.0.1 app/components/blacklight/constraint_layout_component.rb
blacklight-7.23.0 app/components/blacklight/constraint_layout_component.rb
blacklight-7.22.2 app/components/blacklight/constraint_layout_component.rb
blacklight-7.22.1 app/components/blacklight/constraint_layout_component.rb
blacklight-7.22.0 app/components/blacklight/constraint_layout_component.rb
blacklight-7.21.2 app/components/blacklight/constraint_layout_component.rb
blacklight-7.21.1 app/components/blacklight/constraint_layout_component.rb
blacklight-7.21.0 app/components/blacklight/constraint_layout_component.rb
blacklight-7.20.1 app/components/blacklight/constraint_layout_component.rb
blacklight-7.20.0 app/components/blacklight/constraint_layout_component.rb
blacklight-7.19.2 app/components/blacklight/constraint_layout_component.rb
blacklight-7.19.1 app/components/blacklight/constraint_layout_component.rb
blacklight-7.19.0 app/components/blacklight/constraint_layout_component.rb
blacklight-7.18.1 app/components/blacklight/constraint_layout_component.rb
blacklight-7.18.0 app/components/blacklight/constraint_layout_component.rb
blacklight-7.17.2 app/components/blacklight/constraint_layout_component.rb
blacklight-7.17.1 app/components/blacklight/constraint_layout_component.rb
blacklight-7.17.0 app/components/blacklight/constraint_layout_component.rb
blacklight-7.16.0 app/components/blacklight/constraint_layout_component.rb