Media Modal Replace

<sw-media-modal-replace>

ready
The sw-media-modal-replace component is used to let the user upload a new image for an existing media object.

Usage

<sw-media-modal-replace itemToReplace="item">
</sw-media-modal-replace>

Component properties

Property name Type Default
itemToReplace Object

Methods

Method name Parameters
onNewUpload
emitCloseReplaceModal No parameters
replaceMediaItem No parameters

Imports

  • ./sw-media-modal-replace.html.twig
  • ./sw-media-modal-replace.scss

Mixins

  • notification

Inject

  • mediaService

Twig blocks

  • sw_media_modal_replace_cancel_button
  • sw_media_modal_replace_replace_button
  • sw_media_modal_replace_modal_footer
  • sw_media_modal_replace