Class: Koi::Navigation::Editor::ErrorsComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Koi::Navigation::Editor::ErrorsComponent
- Includes:
- Katalyst::HtmlAttributes, Katalyst::Tables::TurboReplaceable, Turbo::FramesHelper
- Defined in:
- app/components/koi/navigation/editor/errors_component.rb
Instance Attribute Summary collapse
-
#menu ⇒ Object
readonly
Returns the value of attribute menu.
Instance Method Summary collapse
- #form_builder ⇒ Object
- #id ⇒ Object
-
#initialize(menu:) ⇒ ErrorsComponent
constructor
A new instance of ErrorsComponent.
Constructor Details
#initialize(menu:) ⇒ ErrorsComponent
Returns a new instance of ErrorsComponent.
13 14 15 16 17 |
# File 'app/components/koi/navigation/editor/errors_component.rb', line 13 def initialize(menu:) super() @menu = end |
Instance Attribute Details
#menu ⇒ Object (readonly)
Returns the value of attribute menu.
11 12 13 |
# File 'app/components/koi/navigation/editor/errors_component.rb', line 11 def @menu end |
Instance Method Details
#form_builder ⇒ Object
23 24 25 |
# File 'app/components/koi/navigation/editor/errors_component.rb', line 23 def form_builder Koi::FormBuilder.new(.model_name.param_key, , self, {}) end |
#id ⇒ Object
19 20 21 |
# File 'app/components/koi/navigation/editor/errors_component.rb', line 19 def id dom_id(, :errors) end |