Class: Bs5::ExpandableListItemComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Bs5::ExpandableListItemComponent
- Defined in:
- app/components/bs5/expandable_list_item_component.rb
Constant Summary collapse
- DEFAULT_WRAPPER_TAG =
:div
Instance Attribute Summary collapse
-
#parent_id ⇒ Object
readonly
Returns the value of attribute parent_id.
-
#stretchable ⇒ Object
(also: #stretchable?)
readonly
Returns the value of attribute stretchable.
-
#wrapper_html ⇒ Object
readonly
Returns the value of attribute wrapper_html.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ ExpandableListItemComponent
constructor
A new instance of ExpandableListItemComponent.
Constructor Details
#initialize(options = {}) ⇒ ExpandableListItemComponent
Returns a new instance of ExpandableListItemComponent.
14 15 16 17 18 19 |
# File 'app/components/bs5/expandable_list_item_component.rb', line 14 def initialize( = {}) @parent_id = .delete(:parent_id) @stretchable = .delete(:stretchable) @wrapper_html = .delete(:wrapper_html) = end |
Instance Attribute Details
#parent_id ⇒ Object (readonly)
Returns the value of attribute parent_id.
12 13 14 |
# File 'app/components/bs5/expandable_list_item_component.rb', line 12 def parent_id @parent_id end |
#stretchable ⇒ Object (readonly) Also known as: stretchable?
Returns the value of attribute stretchable.
12 13 14 |
# File 'app/components/bs5/expandable_list_item_component.rb', line 12 def stretchable @stretchable end |
#wrapper_html ⇒ Object (readonly)
Returns the value of attribute wrapper_html.
12 13 14 |
# File 'app/components/bs5/expandable_list_item_component.rb', line 12 def wrapper_html @wrapper_html end |