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