Class: PhlexKit::FieldLabel
- Inherits:
-
BaseComponent
- Object
- Phlex::HTML
- BaseComponent
- PhlexKit::FieldLabel
- Defined in:
- app/components/phlex_kit/field/field_label.rb
Overview
Instance Method Summary collapse
-
#initialize(**attrs) ⇒ FieldLabel
constructor
A new instance of FieldLabel.
- #view_template ⇒ Object
Methods inherited from BaseComponent
Constructor Details
#initialize(**attrs) ⇒ FieldLabel
Returns a new instance of FieldLabel.
7 |
# File 'app/components/phlex_kit/field/field_label.rb', line 7 def initialize(**attrs) = (@attrs = attrs) |
Instance Method Details
#view_template ⇒ Object
8 9 10 |
# File 'app/components/phlex_kit/field/field_label.rb', line 8 def view_template(&) label(**mix({ class: "pk-label pk-field-label", data: { slot: "field-label" } }, @attrs), &) end |