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