lib/blacklight/configuration/display_field.rb
# frozen_string_literal: true
module Blacklight
class Configuration::DisplayField < Blacklight::Configuration::Field
def initialize(*args, **kwargs, &block)
super
self.presenter ||= Blacklight::FieldPresenter
self.component ||= Blacklight::MetadataFieldComponent
end
##
# The following is a non-exhaustive list of display field config parameters that are used
# by Blacklight directly. Application-specific code or plugins may add or replace
# the parameters and behaviors specified below.
#
##
# Data parameters:
# @!attribute values
# @return [Proc]
# @!attribute accessor
# @return [Boolean,Symbol]
# @!attribute highlight
# @return [Boolean]
# @!attribute default
# @return [Object]
# @!attribute solr_params
# @return [Hash]
# @!attribute include_in_request
# @return [Boolean]
##
# Rendering:
# @!attribute presenter
# @return [Blacklight::FieldPresenter]
# @!attribute component
# @return [Blacklight::MetadataFieldComponent]
##
# Default rendering pipeline:
# @!attribute link_to_facet
# @return [Boolean]
# @!attribute itemprop
# @return [String]
# @!attribute separator_options
# @return [Hash]
end
end