Class: PhlexKit::ItemGroup
- Inherits:
-
BaseComponent
- Object
- Phlex::HTML
- BaseComponent
- PhlexKit::ItemGroup
- Defined in:
- app/components/phlex_kit/item/item_group.rb
Overview
Stack of Items. See item.rb.
Instance Method Summary collapse
-
#initialize(**attrs) ⇒ ItemGroup
constructor
A new instance of ItemGroup.
- #view_template ⇒ Object
Methods inherited from BaseComponent
Constructor Details
#initialize(**attrs) ⇒ ItemGroup
Returns a new instance of ItemGroup.
4 |
# File 'app/components/phlex_kit/item/item_group.rb', line 4 def initialize(**attrs) = (@attrs = attrs) |
Instance Method Details
#view_template ⇒ Object
5 |
# File 'app/components/phlex_kit/item/item_group.rb', line 5 def view_template(&) = div(**mix({ class: "pk-item-group", role: "list" }, @attrs), &) |