Class: PhlexKit::Form
- Inherits:
-
BaseComponent
- Object
- Phlex::HTML
- BaseComponent
- PhlexKit::Form
- Defined in:
- app/components/phlex_kit/form/form.rb
Overview
Form shell, ported from ruby_ui's RubyUI::Form. A plain
Instance Method Summary collapse
-
#initialize(**attrs) ⇒ Form
constructor
A new instance of Form.
- #view_template ⇒ Object
Methods inherited from BaseComponent
Constructor Details
#initialize(**attrs) ⇒ Form
Returns a new instance of Form.
19 20 21 |
# File 'app/components/phlex_kit/form/form.rb', line 19 def initialize(**attrs) @attrs = attrs end |
Instance Method Details
#view_template ⇒ Object
23 24 25 |
# File 'app/components/phlex_kit/form/form.rb', line 23 def view_template(&) form(**mix({ class: "pk-form" }, @attrs), &) end |