Class: Ui::Collapsible::Component
- Inherits:
-
BaseComponent
- Object
- BaseComponent
- Ui::Collapsible::Component
- Defined in:
- lib/uikit_rails/templates/components/collapsible/component.rb
Overview
Expandable/collapsible content section.
Instance Attribute Summary collapse
-
#html_attrs ⇒ Object
readonly
Returns the value of attribute html_attrs.
-
#open ⇒ Object
readonly
Returns the value of attribute open.
Instance Method Summary collapse
-
#initialize(open: false, **html_attrs) ⇒ Component
constructor
A new instance of Component.
Constructor Details
#initialize(open: false, **html_attrs) ⇒ Component
Returns a new instance of Component.
11 12 13 14 15 |
# File 'lib/uikit_rails/templates/components/collapsible/component.rb', line 11 def initialize(open: false, **html_attrs) @open = open @html_attrs = html_attrs super() end |
Instance Attribute Details
#html_attrs ⇒ Object (readonly)
Returns the value of attribute html_attrs.
9 10 11 |
# File 'lib/uikit_rails/templates/components/collapsible/component.rb', line 9 def html_attrs @html_attrs end |
#open ⇒ Object (readonly)
Returns the value of attribute open.
9 10 11 |
# File 'lib/uikit_rails/templates/components/collapsible/component.rb', line 9 def open @open end |