Class: Ui::Collapsible::Component

Inherits:
BaseComponent
  • Object
show all
Defined in:
lib/uikit_rails/templates/components/collapsible/component.rb

Overview

Expandable/collapsible content section.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_attrsObject (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

#openObject (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