Class: Panda::Core::Shared::HeaderComponent

Inherits:
ViewComponent::Base
  • Object
show all
Defined in:
app/components/panda/core/shared/header_component.rb

Overview

Header component for HTML document head Handles title, meta tags, stylesheets, and JavaScript

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(html_class: "", body_class: "", **attrs) ⇒ HeaderComponent

Returns a new instance of HeaderComponent.



9
10
11
12
13
# File 'app/components/panda/core/shared/header_component.rb', line 9

def initialize(html_class: "", body_class: "", **attrs)
  super()
  @html_class = html_class
  @body_class = body_class
end

Instance Attribute Details

#body_classObject (readonly)

Returns the value of attribute body_class.



15
16
17
# File 'app/components/panda/core/shared/header_component.rb', line 15

def body_class
  @body_class
end

#html_classObject (readonly)

Returns the value of attribute html_class.



15
16
17
# File 'app/components/panda/core/shared/header_component.rb', line 15

def html_class
  @html_class
end