Media Media Item

<sw-media-media-item>

ready
The sw-media-media-item component is used to store the media item and manage it through the sw-media-base-item component. Use the default slot to add additional context menu items.

Usage

<sw-media-media-item
    :key="mediaItem.id"
    :item="mediaItem"
    :selected="false"
    :showSelectionIndicator="false"
    :isList="false">

      <sw-context-menu-item @click="showDetails(mediaItem)"
            slot="additional-context-menu-items">
         Lorem ipsum dolor sit amet
      </sw-context-menu-item>
</sw-media-media-item>

Methods

Method name Parameters
onChangeName updatedName item endInlineEdit
rejectRenaming endInlineEdit
onBlur event item endInlineEdit
emitPlayEvent originalDomEvent item
copyItemLink item
openModalDelete No parameters
closeModalDelete No parameters
emitItemDeleted deletePromise
openModalReplace No parameters
closeModalReplace No parameters
openModalMove No parameters
closeModalMove No parameters
onMediaItemMoved movePromise

Imports

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

Mixins

  • notification

Inject

  • mediaService

Twig blocks

  • sw_media_media_item_preview
  • sw_media_media_item_name_container
  • sw_media_media_item_metadata
  • sw_media_media_item_additional_context_menu_slot
  • sw_media_media_item_context_item_rename_item
  • sw_media_media_item_context_item_copy_item_link
  • sw_media_media_item_context_item_replace
  • sw_media_media_item_context_item_move
  • sw_media_media_item_context_item_delete
  • sw_media_media_item_context_group_quick_actions
  • sw_media_media_item_context_menu
  • sw_media_media_item_modal_replace
  • sw_media_media_item_delete_modal
  • sw_media_media_item_move_modal
  • sw_media_media_item

Slots

  • default