Media Folder Content

<sw-media-folder-content>

Component properties

Property name Type Default
startFolderId String
selectedId String

Methods

Method name Parameters
mountedComponent No parameters
getSubFolders parentId
getChildCount folder
fetchParentFolder folderId
updateParentFolder child
emitInput folder

Imports

  • src/core/factory/criteria.factory
  • ./sw-media-folder-content.html.twig
  • ./sw-media-folder-content.scss

Watcher

  • startFolderId

Inject

  • filterItems

SASS variables

Variable name Value
$sw-media-folder-content-border-color-listing $color-steam-cloud ($color-gray-300)
$sw-media-folder-content-border-radius-listing $border-radius-default (4px)
$sw-media-folder-content-border-radius-list-item $border-radius-default (4px)
$sw-media-folder-content-color-buttons $color-gutenberg ($color-darkgray-200)
$sw-media-folder-content-parent-color $color-steam-cloud ($color-gray-300)
$sw-media-folder-content-background-color $color-white (#FFF)

Twig blocks

  • sw_media_folder_content_folder_icon
  • sw_media_folder_content_button_folder_button
  • sw_media_folder_content_switch_button
  • sw_media_folder_content_button_folder
  • sw_media_folder_content_list_item
  • sw_media_folder_content_folder_listing
  • sw_media_folder_content