@sv-westbridge-orebro/sv-functions
v1.0.7
Published
This is a Sitevision package for handeling Westbridge standard functions
Downloads
6
Keywords
Readme
Sitevision functions
This is a Sitevision package for handeling Westbridge standard functions
ImageRenderer
/**
* @param {items} Array
* @param {maxItems} number
* @returns array
*/
function getImageSize(imageSize)
/**
* @param {imageNode} Node
* @param {imageAlt} string
* @param {imageSizeObj} number
* @returns HTML image element
*/
function renderImageFromNode(imageNode, imageAlt, imageSizeObj)
LinkRenderer
/**
* @param {pageNode} Node
* @param {text} string
* @returns HTML link element
*/
function renderLinkFromNode(pageNode, text)
Arrays
/**
* @param {items} Array
* @returns array with the newest arrays first
*/
function sortArraysOnDate(items)
/**
* @param {items} Array
* @param {maxItems} number amout of arrays to be returned af function exectution
* @returns array
*/
function getNumberOfArrays(items, maxitems)