Class: PhlexKit::ItemGroup

Inherits:
BaseComponent show all
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

Methods inherited from BaseComponent

#on

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_templateObject



7
# File 'app/components/phlex_kit/item/item_group.rb', line 7

def view_template(&) = div(**mix({ class: "pk-item-group" }, @attrs), &)