imageCaption(containerModalContent, imgSrc) {
        if (imgSrc.imageCaption) {
            if (containerModalContent.querySelector('.c-image__caption') !== null) {
                containerModalContent.querySelector('.c-image__caption').remove();
            }
            containerModalContent.insertAdjacentHTML("beforeend",
                '<figcaption class="c-image__caption">' + imgSrc.imageCaption + '</figcaption>');
        }
    }
/**
     * Setting image caption
     * @param containerModalContent
     * @param imgSrc
     */
Setting image caption
@param containerModalContent
@param imgSrc
Setting image caption @param containerModalContent @param imgSrc
imageCaption(containerModalContent, imgSrc) {
        if (imgSrc.imageCaption) {
            if (containerModalContent.querySelector('.c-image__caption') !== null) {
                containerModalContent.querySelector('.c-image__caption').remove();
            }
            containerModalContent.insertAdjacentHTML("beforeend",
                '<figcaption class="c-image__caption">' + imgSrc.imageCaption + '</figcaption>');
        }
    }
imageCaption ( containerModalContent , imgSrc ) { if ( imgSrc . imageCaption ) { if ( containerModalContent . querySelector ( '.c-image__caption' ) !== null ) { containerModalContent . querySelector ( '.c-image__caption' ) . remove ( ) ; } containerModalContent . insertAdjacentHTML ( "beforeend" , '<figcaption class="c-image__caption">' + imgSrc . imageCaption + '</figcaption>' ) ; } }
Setting image caption
 @param containerModalContent
 @param imgSrc
Setting image caption @param containerModalContent @param imgSrc