Class: Avo::Sidebar::HeadingComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Avo::Sidebar::HeadingComponent
- Defined in:
- app/components/avo/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.
10 11 12 13 14 15 16 |
# File 'app/components/avo/sidebar/heading_component.rb', line 10 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/avo/sidebar/heading_component.rb', line 4 def collapsable @collapsable end |
#collapsed ⇒ Object (readonly)
Returns the value of attribute collapsed.
5 6 7 |
# File 'app/components/avo/sidebar/heading_component.rb', line 5 def collapsed @collapsed end |
#icon ⇒ Object (readonly)
Returns the value of attribute icon.
6 7 8 |
# File 'app/components/avo/sidebar/heading_component.rb', line 6 def icon @icon end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
7 8 9 |
# File 'app/components/avo/sidebar/heading_component.rb', line 7 def key @key end |
#label ⇒ Object (readonly)
Returns the value of attribute label.
8 9 10 |
# File 'app/components/avo/sidebar/heading_component.rb', line 8 def label @label end |