Class: Ui::Accordion::Component
- Inherits:
-
BaseComponent
- Object
- BaseComponent
- Ui::Accordion::Component
- Defined in:
- lib/uikit_rails/templates/components/accordion/component.rb
Overview
Collapsible accordion with multiple items.
Defined Under Namespace
Classes: Item
Instance Attribute Summary collapse
-
#html_attrs ⇒ Object
readonly
Returns the value of attribute html_attrs.
-
#multiple ⇒ Object
readonly
Returns the value of attribute multiple.
Instance Method Summary collapse
-
#initialize(multiple: false, **html_attrs) ⇒ Component
constructor
A new instance of Component.
Constructor Details
#initialize(multiple: false, **html_attrs) ⇒ Component
Returns a new instance of Component.
13 14 15 16 17 |
# File 'lib/uikit_rails/templates/components/accordion/component.rb', line 13 def initialize(multiple: false, **html_attrs) @multiple = multiple @html_attrs = html_attrs super() end |
Instance Attribute Details
#html_attrs ⇒ Object (readonly)
Returns the value of attribute html_attrs.
11 12 13 |
# File 'lib/uikit_rails/templates/components/accordion/component.rb', line 11 def html_attrs @html_attrs end |
#multiple ⇒ Object (readonly)
Returns the value of attribute multiple.
11 12 13 |
# File 'lib/uikit_rails/templates/components/accordion/component.rb', line 11 def multiple @multiple end |