Class: PhlexKit::ItemGroup

Inherits:
BaseComponent show all
Defined in:
app/components/phlex_kit/item/item_group.rb

Overview

Stack of Items. See item.rb.

Instance Method Summary collapse

Methods inherited from BaseComponent

#on

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_templateObject



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

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