Class: PhlexKit::FieldTitle
- Inherits:
-
BaseComponent
- Object
- Phlex::HTML
- BaseComponent
- PhlexKit::FieldTitle
- Defined in:
- app/components/phlex_kit/field/field_title.rb
Overview
Label-looking title that is NOT a
Instance Method Summary collapse
-
#initialize(**attrs) ⇒ FieldTitle
constructor
A new instance of FieldTitle.
- #view_template ⇒ Object
Methods inherited from BaseComponent
Constructor Details
#initialize(**attrs) ⇒ FieldTitle
Returns a new instance of FieldTitle.
6 |
# File 'app/components/phlex_kit/field/field_title.rb', line 6 def initialize(**attrs) = (@attrs = attrs) |
Instance Method Details
#view_template ⇒ Object
7 8 9 |
# File 'app/components/phlex_kit/field/field_title.rb', line 7 def view_template(&) div(**mix({ class: "pk-field-title" }, @attrs), &) end |