createImg(containerId, imgSrc) {

        const container = containerId.querySelector('.c-image');
        const containerModalContent = containerId.querySelector('.c-modal__content');
        this.imageData = imgSrc;

        if (!('remove' in Element.prototype)) {
            Element.prototype.remove = function() {
                if (this.parentNode) {
                    this.parentNode.removeChild(this);
                }
            };
        }

        if (container.querySelectorAll('img').length === 0) {

            container.innerHTML = '';
            container.classList.remove('c-image--is-placeholder');

            this.Image.initImage({
                'elementContainer': container,
                'attrList': {
                    'src': imgSrc.image,
                    'data-step': imgSrc.imageStep,
                    'data-caption': imgSrc.imageCaption
                },
                'classList': ['c-image__image']
            });

            this.imageCaption(containerModalContent, imgSrc);
            this.StepperInstance.enableStepper('dots', this.container, this.imageDataSet.length, true);

        } else {
            container.querySelector('.c-image__image').src = imgSrc.image;
            container.querySelector('.c-image__image').setAttribute('data-step', imgSrc.imageStep);

            this.imageCaption(containerModalContent, imgSrc);
            this.StepperInstance.enableStepper('dots', this.container, this.imageDataSet.length, false);
        }
    }
/**
     * Create Image in modal
     * @param containerId
     * @param imgSrc
     */
Create Image in modal
@param containerId
@param imgSrc
Create Image in modal @param containerId @param imgSrc
createImg(containerId, imgSrc) {
        const container = containerId.querySelector('.c-image');
        const containerModalContent = containerId.querySelector('.c-modal__content');
        this.imageData = imgSrc;
        if (!('remove' in Element.prototype)) {
            Element.prototype.remove = function() {
                if (this.parentNode) {
                    this.parentNode.removeChild(this);
                }
            };
        }
        if (container.querySelectorAll('img').length === 0) {
            container.innerHTML = '';
            container.classList.remove('c-image--is-placeholder');
            this.Image.initImage({
                'elementContainer': container,
                'attrList': {
                    'src': imgSrc.image,
                    'data-step': imgSrc.imageStep,
                    'data-caption': imgSrc.imageCaption
                },
                'classList': ['c-image__image']
            });
            this.imageCaption(containerModalContent, imgSrc);
            this.StepperInstance.enableStepper('dots', this.container, this.imageDataSet.length, true);
        } else {
            container.querySelector('.c-image__image').src = imgSrc.image;
            container.querySelector('.c-image__image').setAttribute('data-step', imgSrc.imageStep);
            this.imageCaption(containerModalContent, imgSrc);
            this.StepperInstance.enableStepper('dots', this.container, this.imageDataSet.length, false);
        }
    }
createImg ( containerId , imgSrc ) { const container = containerId . querySelector ( '.c-image' ) ; const containerModalContent = containerId . querySelector ( '.c-modal__content' ) ; this . imageData = imgSrc ; if ( ! ( 'remove' in Element . prototype ) ) { Element . prototype . remove = function ( ) { if ( this . parentNode ) { this . parentNode . removeChild ( this ) ; } } ; } if ( container . querySelectorAll ( 'img' ) . length === 0 ) { container . innerHTML = '' ; container . classList . remove ( 'c-image--is-placeholder' ) ; this . Image . initImage ( { 'elementContainer' : container , 'attrList' : { 'src' : imgSrc . image , 'data-step' : imgSrc . imageStep , 'data-caption' : imgSrc . imageCaption } , 'classList' : [ 'c-image__image' ] } ) ; this . imageCaption ( containerModalContent , imgSrc ) ; this . StepperInstance . enableStepper ( 'dots' , this . container , this . imageDataSet . length , true ) ; } else { container . querySelector ( '.c-image__image' ) . src = imgSrc . image ; container . querySelector ( '.c-image__image' ) . setAttribute ( 'data-step' , imgSrc . imageStep ) ; this . imageCaption ( containerModalContent , imgSrc ) ; this . StepperInstance . enableStepper ( 'dots' , this . container , this . imageDataSet . length , false ) ; } }
Create Image in modal
 @param containerId
 @param imgSrc
Create Image in modal @param containerId @param imgSrc