@sv-westbridge-orebro/image-renderer-custom
v1.0.4
Published
This package is for handeling the most common use cases with the interface [ImageRenderer](https://developer.sitevision.se/webdav/files/apidocs/senselogic/sitevision/api/render/ImageRenderer.html).
Downloads
11
Keywords
Readme
This is a Sitevision package for handeling ImageRenderer
This package is for handeling the most common use cases with the interface ImageRenderer.
imageNode Sitevision page node imageAlt alt text imageSizeObj the return value from getImageSize
export function renderImageFromNode(imageNode, imageAlt, imageSizeObj) {
}
returns a image HTML element.
Insert "small", "medium" or "large" in the input parameter imageSize
export function getImageSize(imageSize) {
}
returns a imageSize which should be used in the renderImageFromNode() method.