Class: Spina::Forms::EditorInsertImagesMetaComponent
- Inherits:
-
ApplicationComponent
- Object
- ViewComponent::Base
- ApplicationComponent
- Spina::Forms::EditorInsertImagesMetaComponent
- Defined in:
- app/components/spina/forms/editor_insert_images_meta_component.rb
Instance Attribute Summary collapse
-
#images ⇒ Object
readonly
Returns the value of attribute images.
-
#trix_target_id ⇒ Object
readonly
Returns the value of attribute trix_target_id.
Instance Method Summary collapse
-
#initialize(trix_target_id: nil, images: []) ⇒ EditorInsertImagesMetaComponent
constructor
A new instance of EditorInsertImagesMetaComponent.
Constructor Details
#initialize(trix_target_id: nil, images: []) ⇒ EditorInsertImagesMetaComponent
Returns a new instance of EditorInsertImagesMetaComponent.
6 7 8 9 |
# File 'app/components/spina/forms/editor_insert_images_meta_component.rb', line 6 def initialize(trix_target_id: nil, images:[]) @trix_target_id = trix_target_id @images = images end |
Instance Attribute Details
#images ⇒ Object (readonly)
Returns the value of attribute images.
4 5 6 |
# File 'app/components/spina/forms/editor_insert_images_meta_component.rb', line 4 def images @images end |
#trix_target_id ⇒ Object (readonly)
Returns the value of attribute trix_target_id.
4 5 6 |
# File 'app/components/spina/forms/editor_insert_images_meta_component.rb', line 4 def trix_target_id @trix_target_id end |