Class: Blacklight::Document::ShowToolsComponent
- Inherits:
- 
      Component
      
        - Object
- ViewComponent::Base
- Component
- Blacklight::Document::ShowToolsComponent
 
- Defined in:
- app/components/blacklight/document/show_tools_component.rb
Overview
Render the tools that display on the sidebar of the show page
Constant Summary
Constants inherited from Component
Instance Attribute Summary collapse
- 
  
    
      #document  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute document. 
Instance Method Summary collapse
- #actions ⇒ Object
- 
  
    
      #initialize(document:)  ⇒ ShowToolsComponent 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of ShowToolsComponent. 
- #render? ⇒ Boolean
Methods inherited from Component
Constructor Details
#initialize(document:) ⇒ ShowToolsComponent
Returns a new instance of ShowToolsComponent.
| 8 9 10 | # File 'app/components/blacklight/document/show_tools_component.rb', line 8 def initialize(document:) @document = document end | 
Instance Attribute Details
#document ⇒ Object (readonly)
Returns the value of attribute document.
| 12 13 14 | # File 'app/components/blacklight/document/show_tools_component.rb', line 12 def document @document end | 
Instance Method Details
#actions ⇒ Object
| 18 19 20 | # File 'app/components/blacklight/document/show_tools_component.rb', line 18 def actions helpers.document_actions(document) end | 
#render? ⇒ Boolean
| 14 15 16 | # File 'app/components/blacklight/document/show_tools_component.rb', line 14 def render? helpers.show_doc_actions? end |