Media Folder Item

<sw-media-folder-item>

Component properties

Property name Type Default
isParent Boolean false

Methods

Method name Parameters
getIconConfigFromFolder mediaFolder
onChangeName updatedName item endInlineEdit
onBlur event item endInlineEdit
rejectRenaming item cause endInlineEdit
navigateToFolder id
openSettings No parameters
closeSettings No parameters
openDissolveModal No parameters
closeDissolveModal No parameters
openDeleteModal No parameters
closeDeleteModal No parameters
emitItemDeleted deletePromise
onFolderDissolved dissolvePromise
onFolderMoved movePromise
openMoveModal No parameters
closeMoveModal No parameters

Imports

  • ./sw-media-folder-item.html.twig
  • ./sw-media-folder-item.scss

Mixins

  • notification

SASS variables

Variable name Value
$sw-media-folder-item-background-color-preview $color-white (#FFF)
$sw-media-folder-item-border-radius-preview $border-radius-default (4px)
$sw-media-folder-item-border-color-preview $color-steam-cloud ($color-gray-300)
$sw-media-folder-item-border-color-highlighted-preview $color-shopware-blue ($color-shopware-brand-500)

Twig blocks

  • sw_media_folder_parent_icon
  • sw_media_folder_default_icon
  • sw_media_folder_folder_icon
  • sw_media_folder_item_preview
  • sw_media_base_item_name
  • sw_media_folder_name
  • sw_media_folder_meta_data
  • sw_media_folder_item_context_item_show_media
  • sw_media_folder_item_additional_context_menu_slot
  • sw_media_folder_item_context_item_show_settings
  • sw_media_folder_item_context_item_move
  • sw_media_folder_item_context_item_dissolve
  • sw_media_folder_item_context_item_rename_item
  • sw_media_folder_item_context_item_delete
  • sw_media_folder_item_context_group_quick_actions
  • sw_media_folder_item_context_menu
  • sw_media_folder_settings_modal
  • sw_media_folder_dissolve_modal
  • sw_media_folder_move_modal
  • sw_media_folder_delete_modal
  • sw_media_folder_modal_windows
  • sw_media_folder_item

Slots

  • default