Class: Maglev::Editor::Settings::CollectionItem::CollectionItemComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- Maglev::Editor::Settings::CollectionItem::CollectionItemComponent
- Defined in:
- app/components/maglev/editor/settings/collection_item/collection_item_component.rb
Instance Attribute Summary
Attributes inherited from BaseComponent
#definition, #i18n_scope, #input_scope, #paths, #value
Instance Method Summary collapse
Methods inherited from BaseComponent
#after_initialize, #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
#selected_item_id ⇒ Object
8 9 10 |
# File 'app/components/maglev/editor/settings/collection_item/collection_item_component.rb', line 8 def selected_item_id value&.fetch('id', nil) end |
#selected_item_label ⇒ Object
12 13 14 |
# File 'app/components/maglev/editor/settings/collection_item/collection_item_component.rb', line 12 def selected_item_label value&.fetch('label', nil) end |