The custom ccResizeImage
binding provides scaled images for display on the UI. It also provides the ability to specify an alternate image and image text to be loaded in the event that the image cannot be found. The ccResizeImage
binding must be used inside an img
tag, for example:
<img data-bind="ccResizeImage: { source: '/file/v2/products/AntiqueWoodChair_full.jpg', alt:'Antique Wood Chair', errorSrc:'images/noImage.png', errorAlt:'No Image Found'}"></img>