Class: Geoblacklight::AttributeTableComponent

Inherits:
ViewComponent::Base
  • Object
show all
Defined in:
app/components/geoblacklight/attribute_table_component.rb

Overview

A component for rendering attribute table

Instance Method Summary collapse

Constructor Details

#initialize(document:) ⇒ AttributeTableComponent

Returns a new instance of AttributeTableComponent.



8
9
10
11
# File 'app/components/geoblacklight/attribute_table_component.rb', line 8

def initialize(document:)
  @document = document
  super()
end

Instance Method Details

#render?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'app/components/geoblacklight/attribute_table_component.rb', line 13

def render?
  helpers.document_available?(@document) && @document.inspectable?
end