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. No role="list": Items carry no role="listitem" (an href Item is an that must keep its link role), so claiming a list here made AT announce an empty list.
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.
6 |
# File 'app/components/phlex_kit/item/item_group.rb', line 6 def initialize(**attrs) = (@attrs = attrs) |
Instance Method Details
#view_template ⇒ Object
7 |
# File 'app/components/phlex_kit/item/item_group.rb', line 7 def view_template(&) = div(**mix({ class: "pk-item-group" }, @attrs), &) |