Class: Blacklight::Document::SidebarComponent
- Inherits:
 - 
      Component
      
        
- Object
 - ViewComponent::Base
 - Component
 - Blacklight::Document::SidebarComponent
 
 
- Defined in:
 - app/components/blacklight/document/sidebar_component.rb
 
Overview
Render the sidebar on the show view
Constant Summary
Constants inherited from Component
Instance Attribute Summary collapse
- 
  
    
      #document  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute document.
 
Instance Method Summary collapse
- 
  
    
      #initialize(presenter:)  ⇒ SidebarComponent 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of SidebarComponent.
 
Methods inherited from Component
Constructor Details
#initialize(presenter:) ⇒ SidebarComponent
Returns a new instance of SidebarComponent.
      8 9 10 11  | 
    
      # File 'app/components/blacklight/document/sidebar_component.rb', line 8 def initialize(presenter:) @presenter = presenter @document = presenter.document end  | 
  
Instance Attribute Details
#document ⇒ Object (readonly)
Returns the value of attribute document.
      13 14 15  | 
    
      # File 'app/components/blacklight/document/sidebar_component.rb', line 13 def document @document end  |