Module: pagePreview

Methods

(static) getExtractWidth(thumbnail) → {string}

Calculates width of extract based on the associated thumbnail

Parameters:
Name Type Description
thumbnail ext.popups.Thumbnail | null

model

Source:
Returns:

representing the css width attribute to be used for the extract

Type
string

(static) renderPagePreview(model, thumbnail, withCSSClipPath, linkTitle) → {HTMLElement}

Parameters:
Name Type Description
model ext.popups.PagePreviewModel
thumbnail ext.popups.Thumbnail | null
withCSSClipPath boolean
linkTitle string
Source:
Returns:
Type
HTMLElement