Class: Spina::Forms::AutoFileUploadComponent
- Inherits:
-
ApplicationComponent
- Object
- ViewComponent::Base
- ApplicationComponent
- Spina::Forms::AutoFileUploadComponent
- Defined in:
- app/components/spina/forms/auto_file_upload_component.rb
Overview
Meant to be a hidden component for facilitating quick file uploads from drag and drop or paste action within Trix
Instance Attribute Summary collapse
-
#turbo_frame_id ⇒ Object
readonly
Returns the value of attribute turbo_frame_id.
Instance Method Summary collapse
-
#initialize ⇒ AutoFileUploadComponent
constructor
A new instance of AutoFileUploadComponent.
Constructor Details
#initialize ⇒ AutoFileUploadComponent
Returns a new instance of AutoFileUploadComponent.
8 9 10 |
# File 'app/components/spina/forms/auto_file_upload_component.rb', line 8 def initialize @turbo_frame_id = "auto-file-upload-images" end |
Instance Attribute Details
#turbo_frame_id ⇒ Object (readonly)
Returns the value of attribute turbo_frame_id.
6 7 8 |
# File 'app/components/spina/forms/auto_file_upload_component.rb', line 6 def turbo_frame_id @turbo_frame_id end |