1.0.7 • Published 2 years ago

@sv-westbridge-orebro/sv-functions v1.0.7

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

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)
1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago