Class: Koi::Navigation::Editor::ErrorsComponent

Inherits:
ViewComponent::Base
  • Object
show all
Includes:
Katalyst::HtmlAttributes, Turbo::FramesHelper
Defined in:
app/components/koi/navigation/editor/errors_component.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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 = menu
end

Instance Attribute Details

Returns the value of attribute menu.



10
11
12
# File 'app/components/koi/navigation/editor/errors_component.rb', line 10

def menu
  @menu
end

Instance Method Details

#form_builderObject



22
23
24
# File 'app/components/koi/navigation/editor/errors_component.rb', line 22

def form_builder
  Koi::FormBuilder.new(menu.model_name.param_key, menu, self, {})
end

#idObject



18
19
20
# File 'app/components/koi/navigation/editor/errors_component.rb', line 18

def id
  dom_id(menu, :errors)
end