Class: Maglev::Editor::Settings::Link::LinkComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- Maglev::Editor::Settings::Link::LinkComponent
- Defined in:
- app/components/maglev/editor/settings/link/link_component.rb
Instance Attribute Summary
Attributes inherited from BaseComponent
#definition, #i18n_scope, #input_scope, #paths, #value
Instance Method Summary collapse
Methods inherited from BaseComponent
#call, #default_placeholder, #fetch_path, #initialize, #input_name, #input_source, #label, #placeholder
Constructor Details
This class inherits a constructor from Maglev::Editor::Settings::BaseComponent
Instance Method Details
#after_initialize ⇒ Object
12 13 14 |
# File 'app/components/maglev/editor/settings/link/link_component.rb', line 12 def after_initialize @value = value&.with_indifferent_access end |
#edit_link_path ⇒ Object
8 9 10 |
# File 'app/components/maglev/editor/settings/link/link_component.rb', line 8 def edit_link_path fetch_path(:edit_link_path, { value: value || default_value, input_name: input_name }) end |