Q4Widgets API Documentation

q4.bannerizer

Appends a banner image to the corresponding page with multiple configurations to fit client requirements. Download Title - Needs to match the Page Title Download Description - Requires HTML Thumbnail - The banner image
Script link
q4.bannerizer.1.0.0.min.js
Source file
q4.bannerizer.js, line 2
Requires

Options

loading string
HTML appended during loading / trasitions
Example
'<img src="http://q4widgets.q4web.com/ajax-loader.gif" alt="loading..." />'
dateFormat string
A date format string to use with jQuery UI's Datepicker.
Example
'M d, yy'
showDate boolean
If the date should be rendered (will apply dateFormat if true) If no date is set on the download list item it will default to 01/01/2001
Example
false
showTitle boolean
If the title should be rendered
Example
false
pageTitleSelector string
Selector to the Page Title module
Example
false
titleElement string
The HTML element to render the title inside
Example
'h1'
showDescription boolean
If the description should be rendered. Expects HTML
Example
false
bannerDownloadList string
The ReportType (set under Lookup List) for the Download List with the banner images
Example
'Banners'
bannerClassName string
The class name to add to the banner
Example
false
displayAsImage boolean
If the banner should be rendered as an tag, defauts to a div with a background-image
Example
false
defaultItem string
If a new page is created, or a page exists that has no banner image defined in the download list this item will be used instead
Example
false
onComplete function
A callback that fires after the banner rendered