Class: Panda::Core::Admin::FileGalleryComponent

Inherits:
Base
  • Object
show all
Defined in:
app/components/panda/core/admin/file_gallery_component.rb

Constant Summary

Constants inherited from Base

Base::TAILWIND_MERGER

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(selected_file: nil, files: [], blob_categories: {}, **attrs) ⇒ FileGalleryComponent

Returns a new instance of FileGalleryComponent.



7
8
9
10
11
12
# File 'app/components/panda/core/admin/file_gallery_component.rb', line 7

def initialize(selected_file: nil, files: [], blob_categories: {}, **attrs)
  @files = files
  @selected_file = selected_file
  @blob_categories = blob_categories
  super(**attrs)
end

Instance Attribute Details

#blob_categoriesObject (readonly)

Returns the value of attribute blob_categories.



14
15
16
# File 'app/components/panda/core/admin/file_gallery_component.rb', line 14

def blob_categories
  @blob_categories
end

#filesObject (readonly)

Returns the value of attribute files.



14
15
16
# File 'app/components/panda/core/admin/file_gallery_component.rb', line 14

def files
  @files
end

#selected_fileObject (readonly)

Returns the value of attribute selected_file.



14
15
16
# File 'app/components/panda/core/admin/file_gallery_component.rb', line 14

def selected_file
  @selected_file
end