Class: Koi::Navigation::Editor::ErrorsComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Koi::Navigation::Editor::ErrorsComponent
- Includes:
- Katalyst::HtmlAttributes, 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.
12 13 14 15 16 |
# File 'app/components/koi/navigation/editor/errors_component.rb', line 12 def initialize(menu:) super() @menu = end |
Instance Attribute Details
#menu ⇒ Object (readonly)
Returns the value of attribute menu.
10 11 12 |
# File 'app/components/koi/navigation/editor/errors_component.rb', line 10 def @menu end |
Instance Method Details
#form_builder ⇒ Object
22 23 24 |
# File 'app/components/koi/navigation/editor/errors_component.rb', line 22 def form_builder Koi::FormBuilder.new(.model_name.param_key, , self, {}) end |
#id ⇒ Object
18 19 20 |
# File 'app/components/koi/navigation/editor/errors_component.rb', line 18 def id dom_id(, :errors) end |