Class: PhlexUI::Accordion::Item
- Defined in:
- lib/phlex_ui/accordion/item.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(open: false, rotate_icon: 180, **attrs) ⇒ Item
constructor
A new instance of Item.
- #view_template ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(open: false, rotate_icon: 180, **attrs) ⇒ Item
Returns a new instance of Item.
5 6 7 8 9 |
# File 'lib/phlex_ui/accordion/item.rb', line 5 def initialize(open: false, rotate_icon: 180, **attrs) @open = open @rotate_icon = rotate_icon super(**attrs) end |
Instance Method Details
#view_template ⇒ Object
11 12 13 |
# File 'lib/phlex_ui/accordion/item.rb', line 11 def view_template(&) div(**attrs, &) end |