Class: Jav::Sidebar::HeadingComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Jav::Sidebar::HeadingComponent
- Defined in:
- app/components/jav/sidebar/heading_component.rb
Instance Attribute Summary collapse
-
#collapsable ⇒ Object
readonly
Returns the value of attribute collapsable.
-
#collapsed ⇒ Object
readonly
Returns the value of attribute collapsed.
-
#icon ⇒ Object
readonly
Returns the value of attribute icon.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#label ⇒ Object
readonly
Returns the value of attribute label.
Instance Method Summary collapse
-
#initialize(label: nil, icon: nil, collapsable: false, collapsed: false, key: nil) ⇒ HeadingComponent
constructor
A new instance of HeadingComponent.
Constructor Details
#initialize(label: nil, icon: nil, collapsable: false, collapsed: false, key: nil) ⇒ HeadingComponent
Returns a new instance of HeadingComponent.
6 7 8 9 10 11 12 |
# File 'app/components/jav/sidebar/heading_component.rb', line 6 def initialize(label: nil, icon: nil, collapsable: false, collapsed: false, key: nil) @collapsable = collapsable @collapsed = collapsed @icon = icon @key = key @label = label end |
Instance Attribute Details
#collapsable ⇒ Object (readonly)
Returns the value of attribute collapsable.
4 5 6 |
# File 'app/components/jav/sidebar/heading_component.rb', line 4 def collapsable @collapsable end |
#collapsed ⇒ Object (readonly)
Returns the value of attribute collapsed.
4 5 6 |
# File 'app/components/jav/sidebar/heading_component.rb', line 4 def collapsed @collapsed end |
#icon ⇒ Object (readonly)
Returns the value of attribute icon.
4 5 6 |
# File 'app/components/jav/sidebar/heading_component.rb', line 4 def icon @icon end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
4 5 6 |
# File 'app/components/jav/sidebar/heading_component.rb', line 4 def key @key end |
#label ⇒ Object (readonly)
Returns the value of attribute label.
4 5 6 |
# File 'app/components/jav/sidebar/heading_component.rb', line 4 def label @label end |