Skip to main content

Img Zoom

ImgZoom component is avaliable on the Quick Editor which allows users to get a zoomed display when hovered over the picture.

Props

Props NameDescriptionType
srcThe image URL. This prop is mandatorystring
widthSets the width for the component.string
heightSets the height for the component.string
zoomedAreaHeightSets the height of the zoomed image area.number
zoomedAreaWidthSets the width of the zoomed image area.boolean
zoomedAreaOpacitySets the opacity of the zoomed image area.string
zoomedAreaColorSets the background color of the zoomed image area.string
zoomedImageHeightSets the height of the zoomed image.number
zoomedImageWidthSets the width of the zoomed image.number
marginLeftMargin-left value of the zoomed image and the actual image.number
zoomTypeSets the image type.string
zoomRateSets the zoom ratio when zoomType is set to 'on'.number
zoomInUrlChanges the zoom-in icon.string
zoomOutUrlChanges the zoom-out icon.string
imageFitSets the object-fit property of the image.string
disableZoomTurns zoom on/off.boolean
hideRotationShow or hidden buttons for rotating the imageboolean .
visibleVisibility of ImgZoom componentboolean

Methods

Method NameDescriptionExample Code
rotateIt allows to rotate the image.components.EdtrComp_1.rotate()

zoomType

Sets the image type. You can change it to 'NextTo' and 'On'.

image

zoomedAreaHeight - zoomedAreaWidth

When you increase zoomedAreaHeight and zoomedAreaWidht, you zoom out.

image

marginLeft

Margin-left value of the zoomed image and the actual image.

image

rotate

It allows to rotate the image 90 degree and multiples.

Possible values: 0 | 90 | 180 | 270 | 360 | -90 | -180 | -270 | -360

image

Samples Qjson

QImgZoomTypeNextTo
QImgZoomTypeOn
QImgZoomRotate