Class: Maglev::Editor::Settings::Image::ImageComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- Maglev::Editor::Settings::Image::ImageComponent
- Defined in:
- app/components/maglev/editor/settings/image/image_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
8 9 10 |
# File 'app/components/maglev/editor/settings/image/image_component.rb', line 8 def after_initialize @value = value&.with_indifferent_access end |
#alt_text_input_name ⇒ Object
12 13 14 |
# File 'app/components/maglev/editor/settings/image/image_component.rb', line 12 def alt_text_input_name "#{input_name}[alt_text]" end |
#search_path ⇒ Object
16 17 18 |
# File 'app/components/maglev/editor/settings/image/image_component.rb', line 16 def search_path fetch_path(:assets_path, { source: input_source }) end |